mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
GUACAMOLE-508: Use object instead of array for multiple promises.
This commit is contained in:
@@ -163,9 +163,12 @@ angular.module('navigation').factory('userPageService', ['$injector',
|
|||||||
authenticationService.getCurrentUsername()
|
authenticationService.getCurrentUsername()
|
||||||
);
|
);
|
||||||
|
|
||||||
$q.all([getRootGroups,getPermissionSets])
|
$q.all({
|
||||||
|
rootGroups : getRootGroups,
|
||||||
|
permissionsSets : getPermissionSets
|
||||||
|
})
|
||||||
.then(function rootConnectionGroupsPermissionsRetrieved(data) {
|
.then(function rootConnectionGroupsPermissionsRetrieved(data) {
|
||||||
deferred.resolve(generateHomePage(data[0],data[1]));
|
deferred.resolve(generateHomePage(data.rootGroups,data.permissionsSets));
|
||||||
});
|
});
|
||||||
|
|
||||||
return deferred.promise;
|
return deferred.promise;
|
||||||
|
Reference in New Issue
Block a user