Add UI to archive app instead of uninstall

This commit is contained in:
Johannes Zellner
2025-04-22 18:03:01 +02:00
parent a26ceeb76d
commit 105bcf23be
3 changed files with 35 additions and 6 deletions
+11
View File
@@ -283,6 +283,17 @@ function create() {
if (result.status !== 202) return [result];
return [null];
},
async archive(id, backupId) {
let result;
try {
result = await fetcher.post(`${API_ORIGIN}/api/v1/apps/${id}/archive`, { backupId }, { access_token: accessToken });
} catch (e) {
return [e];
}
if (result.status !== 202) return [result];
return [null];
},
async getEvents(id) {
let result;
try {