This commit is contained in:
2021-01-23 00:53:18 +00:00
parent 83fcf759ee
commit f1698fe8b8
2 changed files with 6 additions and 2 deletions

View File

@@ -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); ret.push(fldErr);
} else {
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;
} }
} }

View File

@@ -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