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

@@ -1156,8 +1156,10 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
});
};
Client.prototype.update = function (callback) {
var data = { };
Client.prototype.update = function (options, callback) {
var data = {
skipBackup: !!options.skipBackup
};
post('/api/v1/cloudron/update', data, null, function (error, data, status) {
if (error) return callback(error);