Only show the headers if we have more than one domain with apps
This commit is contained in:
@@ -21,6 +21,12 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
|
||||
return !!$scope.installedApps.find(function (a) { return a.domain === domain.domain; });
|
||||
};
|
||||
|
||||
$scope.moreThanOneDomainHasApps = function () {
|
||||
return $scope.installedApps.map(function (a) { return a.domain; }).filter(function (item, pos, self) {
|
||||
return self.indexOf(item) === pos;
|
||||
}).length > 1;
|
||||
};
|
||||
|
||||
$scope.appConfigure = {
|
||||
busy: false,
|
||||
error: {},
|
||||
|
||||
Reference in New Issue
Block a user