updates to navigation
This commit is contained in:
parent
c5efeac70a
commit
e9e127e864
1 changed files with 23 additions and 3 deletions
|
|
@ -151,8 +151,9 @@ export default {
|
||||||
this.$refs.siteFooter.removeLoader();
|
this.$refs.siteFooter.removeLoader();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
this.vehicleFromLookup = vehicleLookupResponse.data.vehicle;
|
this.vehicleFromLookup = vehicleLookupResponse.data.vehicle;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.needToLookupVehicle && this.isCarIdDifferentFromTheStore) {
|
if (this.needToLookupVehicle && this.isCarIdDifferentFromTheStore) {
|
||||||
this.activeVehicleLookupAlertType = vehicleLookupAlertTypes.NOT_MATCHED;
|
this.activeVehicleLookupAlertType = vehicleLookupAlertTypes.NOT_MATCHED;
|
||||||
|
|
@ -163,7 +164,11 @@ export default {
|
||||||
|
|
||||||
this.needToLookupVehicle = false;
|
this.needToLookupVehicle = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return await this.navigateForward();
|
||||||
|
},
|
||||||
|
|
||||||
|
async navigateForward() {
|
||||||
if (this.isCarIdDifferentFromTheStore && !this.isSelectedGlassAvailableForVehicle) {
|
if (this.isCarIdDifferentFromTheStore && !this.isSelectedGlassAvailableForVehicle) {
|
||||||
this.$router.navigate(
|
this.$router.navigate(
|
||||||
this.navigationScenarios.CLICKED_FORWARD,
|
this.navigationScenarios.CLICKED_FORWARD,
|
||||||
|
|
@ -177,7 +182,6 @@ export default {
|
||||||
this.$route
|
this.$route
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
// Continue
|
|
||||||
},
|
},
|
||||||
resetActiveAlert() {
|
resetActiveAlert() {
|
||||||
this.activeVehicleLookupAlertType = null;
|
this.activeVehicleLookupAlertType = null;
|
||||||
|
|
@ -187,5 +191,21 @@ export default {
|
||||||
},
|
},
|
||||||
resetDependentState() {},
|
resetDependentState() {},
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
licensePlate() {
|
||||||
|
this.resetActiveAlert();
|
||||||
|
this.needToLookupVehicle = true;
|
||||||
|
this.$refs.siteFooter.updateButtonText(
|
||||||
|
this.getCmsContent("SiteFooterWidget", "ForwardButtonText")
|
||||||
|
);
|
||||||
|
},
|
||||||
|
registrationZipCode() {
|
||||||
|
this.resetActiveAlert();
|
||||||
|
this.needToLookupVehicle = true;
|
||||||
|
this.$refs.siteFooter.updateButtonText(
|
||||||
|
this.getCmsContent("SiteFooterWidget", "ForwardButtonText")
|
||||||
|
);
|
||||||
|
},
|
||||||
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue