Use config.features to customize UI
This commit is contained in:
+3
-3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user