Remove unused usedDomains

This commit is contained in:
Johannes Zellner
2019-05-20 23:23:07 +02:00
parent cc7b203f93
commit 9a859629bc

View File

@@ -13,7 +13,6 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.config = Client.getConfig();
$scope.user = Client.getUserInfo();
$scope.domains = [];
$scope.usedDomains = [];
$scope.groups = [];
$scope.users = [];
$scope.backupsEnabled = true;
@@ -639,14 +638,6 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
function refreshInstalledApps() {
Client.refreshInstalledApps();
var tmp = [];
$scope.installedApps.forEach(function (app) {
if (!tmp.find(function (d) { return d.domain === app.domain; })) tmp.push({ domain: app.domain, apps: [] });
tmp.find(function (d) { return d.domain === app.domain; }).apps.push(app);
});
$scope.usedDomains = tmp;
}
Client.onReady(function () {