Add checkbox to skip backup for app update

This commit is contained in:
Girish Ramakrishnan
2019-09-26 20:10:25 -07:00
parent a905e32cde
commit ee05e109c8
3 changed files with 9 additions and 3 deletions

View File

@@ -479,9 +479,10 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.updateApp = function (id, manifest, callback) {
Client.prototype.updateApp = function (id, manifest, options, callback) {
var data = {
appStoreId: manifest.id + '@' + manifest.version
appStoreId: manifest.id + '@' + manifest.version,
skipBackup: !!options.skipBackup
};
post('/api/v1/apps/' + id + '/update', data, null, function (error, data, status) {