This commit is contained in:
kevgliss 2016-07-04 15:38:51 -07:00 committed by GitHub
parent 4077893d08
commit cb9631b122
1 changed files with 1 additions and 4 deletions

View File

@ -7,12 +7,10 @@ angular.module('lemur')
$scope.user = user; $scope.user = user;
}); });
$scope.save = UserService.update;
$scope.roleService = RoleService; $scope.roleService = RoleService;
$scope.rolePage = 1; $scope.rolePage = 1;
$scope.save = function (user) { $scope.save = function (user) {
UserService.update(user).then( UserService.update(user).then(
function () { function () {
@ -46,10 +44,9 @@ angular.module('lemur')
.controller('UsersCreateController', function ($scope, $uibModalInstance, UserService, LemurRestangular, RoleService, toaster) { .controller('UsersCreateController', function ($scope, $uibModalInstance, UserService, LemurRestangular, RoleService, toaster) {
$scope.user = LemurRestangular.restangularizeElement(null, {}, 'users'); $scope.user = LemurRestangular.restangularizeElement(null, {}, 'users');
$scope.save = UserService.create;
$scope.roleService = RoleService; $scope.roleService = RoleService;
$scope.create = function (user) { $scope.save = function (user) {
UserService.create(user).then( UserService.create(user).then(
function () { function () {
toaster.pop({ toaster.pop({