GUAC-1053: Only display one link for settings within the user menu.

This commit is contained in:
Michael Jumper
2015-04-16 22:18:34 -07:00
parent 38250acf40
commit fbe177231d
3 changed files with 13 additions and 11 deletions

View File

@@ -274,8 +274,14 @@ angular.module('navigation').factory('userPageService', ['$injector',
if (homePage === SYSTEM_HOME_PAGE)
pages.push(homePage);
// Add any settings pages
pages = pages.concat(generateSettingsPages(permissions));
// Add generic link to the first-available settings page
var settingsPages = generateSettingsPages(permissions);
if (settingsPages.length) {
pages.push(new Page(
'USER_MENU.ACTION_MANAGE_SETTINGS',
settingsPages[0].url
));
}
return pages;
};