Differentiate frontend-validation errors from backend errors

This commit is contained in:
Chloe Herd 2023-03-23 09:42:14 -04:00
parent bc4ebd09e6
commit 31cde9807c
2 changed files with 2 additions and 1 deletions

View file

@ -139,7 +139,7 @@ export default {
let file = e.target.files[0];
if (!this.isImageValid(file)) {
this.$emit("imageLookupError");
this.$emit("imageValidityError");
return;
}

View file

@ -23,6 +23,7 @@
includeImageQuestion
:imageQuestionSubmitHandler="getVinFromImage"
@image-lookup-error="displayVinScanAlert"
@image-validity-error="displayVinScanAlert"
data-test="vin-lookup-field"
ref="vinLookupQuestion" />
</div>