This commit is contained in:
@@ -632,6 +632,7 @@ export default {
|
|||||||
let apiErrorCode = parseInt(vm.formState.serverError.code);
|
let apiErrorCode = parseInt(vm.formState.serverError.code);
|
||||||
//Not all server errors mean the form is invalid, exceptions here
|
//Not all server errors mean the form is invalid, exceptions here
|
||||||
let formValid = false;
|
let formValid = false;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
These errors are not the user's fault and no changes to the form are required
|
These errors are not the user's fault and no changes to the form are required
|
||||||
so they may be temporary and user should be able to retry save
|
so they may be temporary and user should be able to retry save
|
||||||
@@ -694,10 +695,13 @@ export default {
|
|||||||
.translateStringWithMultipleKeys(ve.message)
|
.translateStringWithMultipleKeys(ve.message)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
transMessage = result;
|
transMessage = result;
|
||||||
|
console.log("Got Translation");
|
||||||
});
|
});
|
||||||
fldErr += ' - "' + transMessage + '"';
|
fldErr += ' - "' + transMessage + '"';
|
||||||
|
ret.push(fldErr);
|
||||||
|
} else {
|
||||||
|
ret.push(fldErr);
|
||||||
}
|
}
|
||||||
ret.push(fldErr);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
//Update the form status
|
//Update the form status
|
||||||
@@ -705,6 +709,7 @@ export default {
|
|||||||
vm: vm,
|
vm: vm,
|
||||||
valid: false
|
valid: false
|
||||||
});
|
});
|
||||||
|
console.log("done - Returning");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -378,7 +378,6 @@ export default {
|
|||||||
let res = await window.$gz.api.remove(url);
|
let res = await window.$gz.api.remove(url);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
vm.formState.serverError = res.error;
|
||||||
debugger;
|
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(vm);
|
||||||
} else {
|
} else {
|
||||||
//workaround to prevent warning about leaving dirty record
|
//workaround to prevent warning about leaving dirty record
|
||||||
|
|||||||
Reference in New Issue
Block a user