parent
4077893d08
commit
cb9631b122
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue