diff --git a/src/views/apps.js b/src/views/apps.js index b57c5b747..75f0620a2 100644 --- a/src/views/apps.js +++ b/src/views/apps.js @@ -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 () {