Use config.features to customize UI

This commit is contained in:
Girish Ramakrishnan
2019-05-07 10:11:54 -07:00
parent 5d1ff97bf3
commit 48c3372c33
12 changed files with 17 additions and 27 deletions
+3 -3
View File
@@ -16,7 +16,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.usedDomains = [];
$scope.groups = [];
$scope.users = [];
$scope.backupConfig = {};
$scope.backupsEnabled = true;
$scope.disableIndexingTemplate = '# Disable search engine indexing\n\nUser-agent: *\nDisallow: /';
$scope.appConfigure = {
@@ -660,7 +660,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
Client.getBackupConfig(function (error, backupConfig) {
if (error) return console.error(error);
$scope.backupConfig = backupConfig;
$scope.backupEnabled = backupConfig.provider !== 'noop';
});
}
@@ -683,7 +683,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
fetchUsers();
fetchGroups();
getDomains();
if ($scope.user.admin && !$scope.config.managed) getBackupConfig(); // FIXME: detect disabled backups some other way
getBackupConfig();
}
var refreshAppsTimer = $interval(refreshInstalledApps, 5000);