Only show domains where apps are installed at

This commit is contained in:
Johannes Zellner
2019-03-25 16:17:53 +01:00
parent 6318ae046c
commit 57cb9a1d0b
2 changed files with 5 additions and 1 deletions

View File

@@ -17,6 +17,10 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.spacesSuffix = '';
$scope.disableIndexingTemplate = '# Disable search engine indexing\n\nUser-agent: *\nDisallow: /';
$scope.domainHasApps = function (domain) {
return !!$scope.installedApps.find(function (a) { return a.domain === domain.domain; });
};
$scope.appConfigure = {
busy: false,
error: {},