Move all app configure tasks to separate view

This commit is contained in:
Johannes Zellner
2019-09-10 19:21:30 +02:00
parent 8823656d70
commit a4c99fd361
6 changed files with 897 additions and 11 deletions

View File

@@ -36,14 +36,14 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
certificateFileName: '',
keyFile: null,
keyFileName: '',
memoryLimit: 0,
memoryTicks: [],
mailboxName: '',
accessRestrictionOption: 'any',
accessRestriction: { users: [], groups: [] },
dataDir: null,
alternateDomains: [],
mailboxNameEnabled: false,
memoryLimit: 0,
memoryTicks: [],
dataDir: null,
dataDirEnabled: false,
ssoAuth: false,
ftp: false,
@@ -100,7 +100,6 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.appConfigure.mailboxName = app.mailboxName || '';
$scope.appConfigure.label = app.label || '';
$scope.appConfigure.ssoAuth = (app.manifest.addons['ldap'] || app.manifest.addons['oauth']) && app.sso;
$scope.appConfigure.ftp = app.manifest.addons.localstorage && app.manifest.addons.localstorage.ftp;
// create ticks starting from manifest memory limit. the memory limit here is currently split into ram+swap (and thus *2 below)
@@ -114,6 +113,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.appConfigure.memoryTicks.unshift(app.manifest.memoryLimit);
}
$scope.appConfigure.ssoAuth = (app.manifest.addons['ldap'] || app.manifest.addons['oauth']) && app.sso;
$scope.appConfigure.accessRestrictionOption = app.accessRestriction ? 'groups' : 'any';
$scope.appConfigure.accessRestriction = { users: [], groups: [] };