updates to navigation

This commit is contained in:
Kroell 2023-01-16 15:00:11 -05:00
parent c5efeac70a
commit e9e127e864

View file

@ -151,8 +151,9 @@ export default {
this.$refs.siteFooter.removeLoader();
return;
}
}
this.vehicleFromLookup = vehicleLookupResponse.data.vehicle;
}
if (this.needToLookupVehicle && this.isCarIdDifferentFromTheStore) {
this.activeVehicleLookupAlertType = vehicleLookupAlertTypes.NOT_MATCHED;
@ -163,7 +164,11 @@ export default {
this.needToLookupVehicle = false;
}
return await this.navigateForward();
},
async navigateForward() {
if (this.isCarIdDifferentFromTheStore && !this.isSelectedGlassAvailableForVehicle) {
this.$router.navigate(
this.navigationScenarios.CLICKED_FORWARD,
@ -177,7 +182,6 @@ export default {
this.$route
);
}
// Continue
},
resetActiveAlert() {
this.activeVehicleLookupAlertType = null;
@ -187,5 +191,21 @@ export default {
},
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>