apps: add archive action

This commit is contained in:
Girish Ramakrishnan
2024-12-09 18:28:35 +01:00
parent 147e014205
commit 710bd270d7
9 changed files with 85 additions and 7 deletions
+11
View File
@@ -1004,6 +1004,17 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.archiveApp = function (appId, backupId, callback) {
var data = { backupId: backupId };
post('/api/v1/apps/' + appId + '/archive', data, null, function (error, data, status) {
if (error) return callback(error);
if (status !== 202) return callback(new ClientError(status, data));
callback(null);
});
};
Client.prototype.uninstallApp = function (appId, callback) {
var data = {};