continue button shows as disabled with VehiceNotFound alert
This commit is contained in:
parent
54705cc61a
commit
617bb61d7a
2 changed files with 9 additions and 1 deletions
|
|
@ -12,7 +12,7 @@
|
|||
isPrimary
|
||||
:buttonText="buttonText"
|
||||
loaderColor="white"
|
||||
:class="isForwardActionDisabled && 'form-test-invalid'"
|
||||
:class="(disableForwardAction || isForwardActionDisabled) && 'form-test-invalid'"
|
||||
:aria-disabled="isForwardActionDisabled"
|
||||
:isDisabled="isForwardActionDisabled"
|
||||
@click-event="buttonClick"
|
||||
|
|
@ -55,6 +55,7 @@ export default {
|
|||
return {
|
||||
paddingHeight: 0,
|
||||
customButtontext: "",
|
||||
disableForwardAction: false,
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
|
|
@ -111,6 +112,12 @@ export default {
|
|||
linkClick() {
|
||||
this.$emit("backClicked");
|
||||
},
|
||||
disableForwardButton() {
|
||||
this.disableForwardAction = true;
|
||||
},
|
||||
enableForwardAction() {
|
||||
this.disableForwardAction = false;
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -167,6 +167,7 @@ export default {
|
|||
// No VIN found
|
||||
if (resultMap.vinLookupResponse.error) {
|
||||
this.displayVinNotFoundAlert = true;
|
||||
this.$refs.siteFooter.disableForwardButton();
|
||||
return this.$refs.siteFooter.removeLoader();
|
||||
}
|
||||
// If no VIN was found, stop processing after displaying alert
|
||||
|
|
|
|||
Loading…
Reference in a new issue