Differentiate frontend-validation errors from backend errors
This commit is contained in:
parent
bc4ebd09e6
commit
31cde9807c
2 changed files with 2 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ export default {
|
|||
let file = e.target.files[0];
|
||||
|
||||
if (!this.isImageValid(file)) {
|
||||
this.$emit("imageLookupError");
|
||||
this.$emit("imageValidityError");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
includeImageQuestion
|
||||
:imageQuestionSubmitHandler="getVinFromImage"
|
||||
@image-lookup-error="displayVinScanAlert"
|
||||
@image-validity-error="displayVinScanAlert"
|
||||
data-test="vin-lookup-field"
|
||||
ref="vinLookupQuestion" />
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue