mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-08 06:01:22 +00:00
GUACAMOLE-508: Style and comment fix-ups.
This commit is contained in:
@@ -57,6 +57,12 @@ angular.module('navigation').factory('userPageService', ['$injector',
|
|||||||
* A map of all root connection groups visible to the current user,
|
* A map of all root connection groups visible to the current user,
|
||||||
* where each key is the identifier of the corresponding data source.
|
* where each key is the identifier of the corresponding data source.
|
||||||
*
|
*
|
||||||
|
* @param {Object.<String, PermissionSet>} permissions
|
||||||
|
* A map of all permissions granted to the current user, where each
|
||||||
|
* key is the identifier of the corresponding data source.
|
||||||
|
*
|
||||||
|
* @param {Object.<String,
|
||||||
|
*
|
||||||
* @returns {PageDefinition}
|
* @returns {PageDefinition}
|
||||||
* The user's home page.
|
* The user's home page.
|
||||||
*/
|
*/
|
||||||
@@ -65,6 +71,8 @@ angular.module('navigation').factory('userPageService', ['$injector',
|
|||||||
var homePage = null;
|
var homePage = null;
|
||||||
var settingsPages = generateSettingsPages(permissions);
|
var settingsPages = generateSettingsPages(permissions);
|
||||||
|
|
||||||
|
// If we have more than one setting page, return the main home page
|
||||||
|
// and don't worry about checking for a single connection.
|
||||||
if (settingsPages.length > 1)
|
if (settingsPages.length > 1)
|
||||||
return SYSTEM_HOME_PAGE;
|
return SYSTEM_HOME_PAGE;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user