Show backup target status
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user