parent
4077893d08
commit
cb9631b122
5
lemur/static/app/angular/users/user/user.js
vendored
5
lemur/static/app/angular/users/user/user.js
vendored
@ -7,12 +7,10 @@ angular.module('lemur')
|
||||
$scope.user = user;
|
||||
});
|
||||
|
||||
$scope.save = UserService.update;
|
||||
$scope.roleService = RoleService;
|
||||
|
||||
$scope.rolePage = 1;
|
||||
|
||||
|
||||
$scope.save = function (user) {
|
||||
UserService.update(user).then(
|
||||
function () {
|
||||
@ -46,10 +44,9 @@ angular.module('lemur')
|
||||
|
||||
.controller('UsersCreateController', function ($scope, $uibModalInstance, UserService, LemurRestangular, RoleService, toaster) {
|
||||
$scope.user = LemurRestangular.restangularizeElement(null, {}, 'users');
|
||||
$scope.save = UserService.create;
|
||||
$scope.roleService = RoleService;
|
||||
|
||||
$scope.create = function (user) {
|
||||
$scope.save = function (user) {
|
||||
UserService.create(user).then(
|
||||
function () {
|
||||
toaster.pop({
|
||||
|
Loading…
Reference in New Issue
Block a user