Add info on what cleanup backups does

This commit is contained in:
Girish Ramakrishnan
2020-07-15 15:10:37 -07:00
parent 6d6fba873f
commit 3abdbdc7c9
2 changed files with 26 additions and 1 deletions

View File

@@ -205,6 +205,10 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat
});
},
cleanupBackups: function (backup) {
$('#cleanupBackupsModal').modal('show');
},
startCleanup: function () {
$scope.createBackup.busy = true;
$scope.createBackup.percent = 0;
@@ -212,6 +216,8 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat
$scope.createBackup.errorMessage = '';
$scope.createBackup.taskType = 'cleanBackups';
$('#cleanupBackupsModal').modal('hide');
Client.cleanupBackups(function (error, taskId) {
if (error) console.error(error);