Skip to content

Commit

Permalink
GUACAMOLE-1916: Jump to top of page after clone.
Browse files Browse the repository at this point in the history
  • Loading branch information
necouchman committed Apr 3, 2024
1 parent 06374de commit 1a9edd0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i
*/
$scope.cloneConnection = function cloneConnection() {
$location.path('/manage/' + encodeURIComponent($scope.selectedDataSource) + '/connections').search('clone', identifier);
$window.scrollTo(0,0);
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ angular.module('manage').controller('manageConnectionGroupController', ['$scope'
*/
$scope.cloneConnectionGroup = function cloneConnectionGRoup() {
$location.path('/manage/' + encodeURIComponent($scope.selectedDataSource) + '/connectionGroups').search('clone', identifier);
$window.scrollTo(0,0);
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ angular.module('manage').controller('manageSharingProfileController', ['$scope',
*/
$scope.cloneSharingProfile = function cloneSharingProfile() {
$location.path('/manage/' + encodeURIComponent($scope.selectedDataSource) + '/sharingProfiles').search('clone', identifier);
$window.scrollTo(0,0);
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
*/
$scope.cloneUser = function cloneUser() {
$location.path('/manage/' + encodeURIComponent($scope.dataSource) + '/users').search('clone', username);
$window.scrollTo(0,0);
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ angular.module('manage').controller('manageUserGroupController', ['$scope', '$in
*/
$scope.cloneUserGroup = function cloneUserGroup() {
$location.path('/manage/' + encodeURIComponent($scope.dataSource) + '/userGroups').search('clone', identifier);
$window.scrollTo(0,0);
};

/**
Expand Down

0 comments on commit 1a9edd0

Please sign in to comment.