diff --git a/src/js/client.js b/src/js/client.js index e9df940f8..16a16cb90 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -725,6 +725,15 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout }); }; + Client.prototype.editAppBackup = function (id, backupId, label, preserveSecs, callback) { + post('/api/v1/apps/' + id + '/backups/' + backupId, { label: label, preserveSecs: preserveSecs }, null, function (error, data, status) { + if (error) return callback(error); + if (status !== 200) return callback(new ClientError(status, data)); + + callback(null); + }); + }; + Client.prototype.updateApp = function (id, manifest, options, callback) { var data = { appStoreId: manifest.id + '@' + manifest.version, diff --git a/src/views/app.html b/src/views/app.html index 49f29595a..272376fe4 100644 --- a/src/views/app.html +++ b/src/views/app.html @@ -69,6 +69,40 @@ + + +