restore: fix typo. error -> formError
This commit is contained in:
@@ -88,15 +88,15 @@ async function onSubmit() {
|
||||
formError.value = {};
|
||||
|
||||
if (fullPath.value.indexOf('/') === -1) {
|
||||
error.value.generic = 'Backup id must include the directory path';
|
||||
error.value.remotePath = true;
|
||||
formError.value.generic = 'Backup id must include the directory path';
|
||||
formError.value.remotePath = true;
|
||||
busy.value = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (fullPath.value.indexOf('box') === -1) {
|
||||
error.value.generic = 'Backup id must contain "box"';
|
||||
error.value.remotePath = true;
|
||||
formError.value.generic = 'Backup id must contain "box"';
|
||||
formError.value.remotePath = true;
|
||||
busy.value = false;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user