mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-586: Ensure page list tabs appear in deterministic order.
This commit is contained in:
@@ -138,7 +138,7 @@ angular.module('navigation').directive('guacPageList', [function guacPageList()
|
|||||||
name : name,
|
name : name,
|
||||||
url : isCurrentPage ? currentURL : page.url,
|
url : isCurrentPage ? currentURL : page.url,
|
||||||
className : page.className,
|
className : page.className,
|
||||||
weight : page.weight || weight
|
weight : page.weight || (weight + i)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -53,6 +53,14 @@ angular.module('navigation').factory('userPageService', ['$injector',
|
|||||||
url : '/'
|
url : '/'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The identifiers of all data sources currently available to the
|
||||||
|
* authenticated user.
|
||||||
|
*
|
||||||
|
* @type String[]
|
||||||
|
*/
|
||||||
|
var dataSources = authenticationService.getAvailableDataSources();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an appropriate home page for the current user.
|
* Returns an appropriate home page for the current user.
|
||||||
*
|
*
|
||||||
@@ -176,9 +184,10 @@ angular.module('navigation').factory('userPageService', ['$injector',
|
|||||||
var canManageSessions = [];
|
var canManageSessions = [];
|
||||||
|
|
||||||
// Inspect the contents of each provided permission set
|
// Inspect the contents of each provided permission set
|
||||||
angular.forEach(permissionSets, function inspectPermissions(permissions, dataSource) {
|
angular.forEach(dataSources, function inspectPermissions(dataSource) {
|
||||||
|
|
||||||
permissions = angular.copy(permissions);
|
// Copy permissions for current data source
|
||||||
|
var permissions = angular.copy(permissionSets[dataSource]);
|
||||||
|
|
||||||
// Ignore permission to update root group
|
// Ignore permission to update root group
|
||||||
PermissionSet.removeConnectionGroupPermission(permissions,
|
PermissionSet.removeConnectionGroupPermission(permissions,
|
||||||
|
Reference in New Issue
Block a user