Add flag for per-app automatic update

This commit is contained in:
Girish Ramakrishnan
2018-12-07 09:04:06 -08:00
parent c507df902e
commit 970f7fe69b
3 changed files with 9 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.appConfigure.alternateDomain = app.alternateDomains[0] ? $scope.domains.filter(function (d) { return d.domain === app.alternateDomains[0].domain; })[0] : $scope.appConfigure.domain;
$scope.appConfigure.robotsTxt = app.robotsTxt;
$scope.appConfigure.enableBackup = app.enableBackup;
$scope.appConfigure.enableAutomaticUpdate = app.enableAutomaticUpdate;
$scope.appConfigure.mailboxNameEnabled = app.mailboxName && (app.mailboxName.match(/\.app$/) === null);
$scope.appConfigure.mailboxName = app.mailboxName || '';
@@ -142,6 +143,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
memoryLimit: $scope.appConfigure.memoryLimit === $scope.appConfigure.memoryTicks[0] ? 0 : $scope.appConfigure.memoryLimit,
robotsTxt: $scope.appConfigure.robotsTxt,
enableBackup: $scope.appConfigure.enableBackup,
enableAutomaticUpdate: $scope.appConfigure.enableAutomaticUpdate,
alternateDomains: []
};
@@ -413,6 +415,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.appConfigure.ssoAuth = false;
$scope.appConfigure.robotsTxt = '';
$scope.appConfigure.enableBackup = true;
$scope.appConfigure.enableAutomaticUpdate = true;
$scope.appConfigureForm.$setPristine();
$scope.appConfigureForm.$setUntouched();