Add initial repair dialog

This commit is contained in:
Johannes Zellner
2025-03-22 11:19:06 +01:00
parent 8522775569
commit 64b730a22e
4 changed files with 233 additions and 27 deletions
+11
View File
@@ -378,6 +378,17 @@ function create() {
if (result.status !== 200) return [result];
return [null, result.body];
},
async repair(id, data) {
let result;
try {
result = await fetcher.post(`${API_ORIGIN}/api/v1/apps/${id}/repair`, data, { access_token: accessToken });
} catch (e) {
return [e];
}
if (result.status !== 200 && result.status !== 202) return [result];
return [null, result.body];
},
};
}