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