Show backup target status

This commit is contained in:
Johannes Zellner
2025-08-04 11:48:00 +02:00
parent 034d35b8a7
commit 19893601f2
2 changed files with 27 additions and 2 deletions
+2 -2
View File
@@ -137,10 +137,10 @@ function create() {
if (error || result.status !== 202) return [error || result];
return [null, result.body.taskId];
},
async mountStatus(id) {
async status(id) {
let error, result;
try {
result = await fetcher.get(`${API_ORIGIN}/api/v1/backup_targets/${id}/mount_status`, { access_token: accessToken });
result = await fetcher.get(`${API_ORIGIN}/api/v1/backup_targets/${id}/status`, { access_token: accessToken });
} catch (e) {
error = e;
}