Set default rentention to a week

This commit is contained in:
Girish Ramakrishnan
2017-10-11 11:03:05 -07:00
parent db8c5a116f
commit 5694e676bd
2 changed files with 4 additions and 4 deletions

View File

@@ -356,7 +356,7 @@
<div class="row" ng-show="backupConfig.provider !== 'caas'">
<div class="col-xs-6">
<span class="text-muted">Format</span>
<span class="text-muted">Storage Format</span>
</div>
<div class="col-xs-6 text-right">
<span>{{ backupConfig.format }}</span>

View File

@@ -52,7 +52,7 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
$scope.retentionTimes = [
{ name: '2 days', value: 2 * 24 * 60 * 60 },
{ name: '1 week', value: 7 * 24 * 60 * 60},
{ name: '1 week', value: 7 * 24 * 60 * 60}, // the default
{ name: '1 month', value: 30 * 24 * 60 * 60},
{ name: 'Forever', value: -1 }
];
@@ -325,7 +325,7 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
region: '',
endpoint: '',
backupFolder: '',
retentionSecs: -1,
retentionSecs: 7 * 24 * 60 * 60,
acceptSelfSignedCerts: false,
format: 'tgz',
@@ -337,7 +337,7 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
$scope.configureBackup.endpoint = '';
$scope.configureBackup.region = '';
$scope.configureBackup.backupFolder = '';
$scope.configureBackup.retentionSecs = -1;
$scope.configureBackup.retentionSecs = 7 * 24 * 60 * 60;
$scope.configureBackup.format = 'tgz';
$scope.configureBackup.acceptSelfSignedCerts = false;
},