mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 23:09:41 +02:00
feat(UX): UX/responsiveness enhancements
This commit is contained in:
parent
967286f45d
commit
c243a02e7a
31 changed files with 710 additions and 509 deletions
|
@ -14,7 +14,7 @@ function ($scope, $state, UserService, ModalService, Messages, Pagination) {
|
|||
Username: '',
|
||||
Password: '',
|
||||
ConfirmPassword: '',
|
||||
Role: 2,
|
||||
Administrator: false,
|
||||
};
|
||||
|
||||
$scope.order = function(sortType) {
|
||||
|
@ -59,7 +59,7 @@ function ($scope, $state, UserService, ModalService, Messages, Pagination) {
|
|||
$scope.state.userCreationError = '';
|
||||
var username = $scope.formValues.Username;
|
||||
var password = $scope.formValues.Password;
|
||||
var role = $scope.formValues.Role;
|
||||
var role = $scope.formValues.Administrator ? 1 : 2;
|
||||
UserService.createUser(username, password, role)
|
||||
.then(function success(data) {
|
||||
Messages.send("User created", username);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue