Create a new backup when backup config changes
This is required so that app restore UI works
This commit is contained in:
@@ -180,8 +180,8 @@
|
||||
</div>
|
||||
|
||||
<div class="form-group" ng-class="{ 'has-error': configureBackup.error.key }">
|
||||
<label class="control-label" for="inputConfigureBackupKey">Encryption Key</label>
|
||||
<input type="text" class="form-control" ng-model="configureBackup.key" id="inputConfigureBackupKey" name="prefix" ng-disabled="configureBackup.busy" placeholder="Encryption key for all backups" required>
|
||||
<label class="control-label" for="inputConfigureBackupKey">Encryption Key (optional)</label>
|
||||
<input type="text" class="form-control" ng-model="configureBackup.key" id="inputConfigureBackupKey" name="prefix" ng-disabled="configureBackup.busy" placeholder="Encryption key for all backups">
|
||||
</div>
|
||||
|
||||
<input class="ng-hide" type="submit" ng-disabled="configureBackupForm.$invalid"/>
|
||||
|
||||
@@ -397,6 +397,9 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
|
||||
// $scope.configureBackup.reset();
|
||||
$('#configureBackupModal').modal('hide');
|
||||
|
||||
// TODO: be smarter and create new backup only when required
|
||||
$scope.createBackup.doCreateBackup();
|
||||
|
||||
// now refresh the ui
|
||||
Client.refreshConfig();
|
||||
getBackupConfig();
|
||||
|
||||
Reference in New Issue
Block a user