mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-1133: Redirect to proper parent URL for given management pages (fixes GUAC-1137).
This commit is contained in:
@@ -291,7 +291,7 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i
|
||||
* Cancels all pending edits, returning to the management page.
|
||||
*/
|
||||
$scope.cancel = function cancel() {
|
||||
$location.url('/manage/');
|
||||
$location.path('/manage/modules/connections/');
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -313,7 +313,7 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i
|
||||
// Save the connection
|
||||
connectionService.saveConnection($scope.connection)
|
||||
.success(function savedConnection() {
|
||||
$location.path('/manage/');
|
||||
$location.path('/manage/modules/connections/');
|
||||
})
|
||||
|
||||
// Notify of any errors
|
||||
@@ -363,7 +363,7 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i
|
||||
// Delete the connection
|
||||
connectionService.deleteConnection($scope.connection)
|
||||
.success(function deletedConnection() {
|
||||
$location.path('/manage/');
|
||||
$location.path('/manage/modules/connections/');
|
||||
})
|
||||
|
||||
// Notify of any errors
|
||||
|
@@ -171,7 +171,7 @@ angular.module('manage').controller('manageConnectionGroupController', ['$scope'
|
||||
* Cancels all pending edits, returning to the management page.
|
||||
*/
|
||||
$scope.cancel = function cancel() {
|
||||
$location.path('/manage/');
|
||||
$location.path('/manage/modules/connections/');
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -183,7 +183,7 @@ angular.module('manage').controller('manageConnectionGroupController', ['$scope'
|
||||
// Save the connection
|
||||
connectionGroupService.saveConnectionGroup($scope.connectionGroup)
|
||||
.success(function savedConnectionGroup() {
|
||||
$location.path('/manage/');
|
||||
$location.path('/manage/modules/connections/');
|
||||
})
|
||||
|
||||
// Notify of any errors
|
||||
@@ -233,7 +233,7 @@ angular.module('manage').controller('manageConnectionGroupController', ['$scope'
|
||||
// Delete the connection group
|
||||
connectionGroupService.deleteConnectionGroup($scope.connectionGroup)
|
||||
.success(function deletedConnectionGroup() {
|
||||
$location.path('/manage/');
|
||||
$location.path('/manage/modules/connections/');
|
||||
})
|
||||
|
||||
// Notify of any errors
|
||||
|
@@ -400,7 +400,7 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
|
||||
* Cancels all pending edits, returning to the management page.
|
||||
*/
|
||||
$scope.cancel = function cancel() {
|
||||
$location.path('/manage/');
|
||||
$location.path('/manage/modules/users/');
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -426,7 +426,7 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
|
||||
// Upon success, save any changed permissions
|
||||
permissionService.patchPermissions($scope.user.username, permissionsAdded, permissionsRemoved)
|
||||
.success(function patchedUserPermissions() {
|
||||
$location.path('/manage/');
|
||||
$location.path('/manage/modules/users/');
|
||||
})
|
||||
|
||||
// Notify of any errors
|
||||
@@ -488,7 +488,7 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
|
||||
// Delete the user
|
||||
userService.deleteUser($scope.user)
|
||||
.success(function deletedUser() {
|
||||
$location.path('/manage/');
|
||||
$location.path('/manage/modules/users/');
|
||||
})
|
||||
|
||||
// Notify of any errors
|
||||
|
Reference in New Issue
Block a user