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]; let file = e.target.files[0];
if (!this.isImageValid(file)) { if (!this.isImageValid(file)) {
this.$emit("imageLookupError"); this.$emit("imageValidityError");
return; return;
} }

View file

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