GUAC-586: Do not show tab levels which have only one tab.

This commit is contained in:
Michael Jumper
2015-09-02 15:46:59 -07:00
parent 36c1c853f9
commit 361e985ae1
6 changed files with 21 additions and 25 deletions

View File

@@ -46,17 +46,6 @@ angular.module('manage').controller('settingsController', ['$scope', '$injector'
*/
$scope.activeTab = $routeParams.tab;
/**
* Returns whether the list of all available settings tabs should be shown.
*
* @returns {Boolean}
* true if the list of available settings tabs should be shown, false
* otherwise.
*/
$scope.showAvailableTabs = function showAvailableTabs() {
return !!$scope.settingsPages && $scope.settingsPages.length > 1;
};
// Retrieve settings pages
userPageService.getSettingsPages()
.then(function settingsPagesRetrieved(pages) {

View File

@@ -29,7 +29,7 @@ THE SOFTWARE.
<!-- Available tabs -->
<div class="page-tabs">
<guac-page-list pages="settingsPages" ng-show="showAvailableTabs()"></guac-page-list>
<guac-page-list pages="settingsPages"></guac-page-list>
</div>
<!-- Selected tab -->