apps: add edit backup UI

This commit is contained in:
Girish Ramakrishnan
2022-04-08 10:57:45 -07:00
parent 6d04b2645c
commit 153abc8078
3 changed files with 98 additions and 4 deletions

View File

@@ -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,