GUACAMOLE-526: Move handling of request error notification to guacNotification, resolving circular dependency.
This commit is contained in:
1 parent
266b445c21
commit
ae6b5fc8bb
10 files changed
+26
-41
No files matched your search
@@ -1141,9 +1141,9 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
|
||||
permissionService.patchPermissions(selectedDataSource, $scope.user.username, permissionsAdded, permissionsRemoved)
|
||||
.then(function patchedUserPermissions() {
|
||||
$location.url('/settings/users');
|
||||
}, requestService.SHOW_NOTIFICATION);
|
||||
}, guacNotification.SHOW_REQUEST_ERROR);
|
||||
|
||||
}, requestService.SHOW_NOTIFICATION);
|
||||
}, guacNotification.SHOW_REQUEST_ERROR);
|
||||
|
||||
};
|
||||
|
||||
@@ -1183,7 +1183,7 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
|
||||
userService.deleteUser(selectedDataSource, $scope.user)
|
||||
.then(function deletedUser() {
|
||||
$location.path('/settings/users');
|
||||
}, requestService.SHOW_NOTIFICATION);
|
||||
}, guacNotification.SHOW_REQUEST_ERROR);
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user