Remove unused usedDomains
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user