Add checkbox to skip backup

This commit is contained in:
Girish Ramakrishnan
2019-05-12 13:08:40 -07:00
parent 53a00a8d76
commit 8e346bf676
3 changed files with 10 additions and 3 deletions

View File

@@ -28,6 +28,7 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
message: 'Downloading',
errorMessage: '', // this shows inline
taskId: '',
skipBackup: false,
show: function () {
$scope.update.error.generic = null;
@@ -105,7 +106,7 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
$scope.update.message = '';
$scope.update.errorMessage = '';
Client.update(function (error, taskId) {
Client.update({ skipBackup: $scope.update.skipBackup }, function (error, taskId) {
if (error) {
$scope.update.error.generic = error.message;
$scope.update.busy = false;