Rename backup label to name and separate backup listing into new view
This commit is contained in:
@@ -93,6 +93,17 @@ function create() {
|
||||
if (error || result.status !== 200) return [error || result];
|
||||
return [null];
|
||||
},
|
||||
async setName(id, name) {
|
||||
let error, result;
|
||||
try {
|
||||
result = await fetcher.post(`${API_ORIGIN}/api/v1/backup_targets/${id}/configure/name`, { name }, { access_token: accessToken });
|
||||
} catch (e) {
|
||||
error = e;
|
||||
}
|
||||
|
||||
if (error || result.status !== 200) return [error || result];
|
||||
return [null];
|
||||
},
|
||||
async setLimits(id, limits) {
|
||||
let error, result;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user