Merge pull request #752 from Safelite/feature/SSR-1304

SSR-1304 - small tweaks to license-plate-lookup functionality
This commit is contained in:
katiekroell 2024-06-13 16:14:49 -04:00 committed by GitHub
commit f41b9afcf7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -170,7 +170,8 @@ export default {
const vinYmmFound =
// eslint-disable-next-line max-len
`${this.customAlertData?.vehicleInfo?.year} ${this.customAlertData?.vehicleInfo?.make} ${this.customAlertData?.vehicleInfo?.model}`;
const vinYmmExpected = `${this.mainStore.order.vehicle.year} ${this.mainStore.order.vehicle.make} ${this.mainStore.order.vehicle.model}`;
const vinYmmExpected = `${this.mainStore.order.vehicle.year} ${this.mainStore.order.vehicle.make}
${this.mainStore.order.vehicle.model}`;
return this.getCmsContent(
'AlertMatchedDifferentVehicleWidget',
@ -206,7 +207,8 @@ export default {
const vinYmmFound =
// eslint-disable-next-line max-len
`${this.customAlertData?.vehicleInfo?.year} ${this.customAlertData?.vehicleInfo?.make} ${this.customAlertData?.vehicleInfo?.model}`;
const vinYmmExpected = `${this.mainStore.order.vehicle.year} ${this.mainStore.order.vehicle.make} ${this.mainStore.order.vehicle.model}`;
const vinYmmExpected = `${this.mainStore.order.vehicle.year} ${this.mainStore.order.vehicle.make}
${this.mainStore.order.vehicle.model}`;
return vinYmmFound.toLowerCase() === vinYmmExpected.toLowerCase();
},
stateOptions: {
@ -224,6 +226,7 @@ export default {
this.$refs.siteFooter.updateButtonText(this.getCmsContent('SiteFooterWidget', 'ForwardButtonText'));
},
licenseState() {
this.$refs.siteFooter.updateButtonText(this.getCmsContent('SiteFooterWidget', 'ForwardButtonText'));
this.$refs.siteFooter.enableForwardAction();
}
},
@ -272,6 +275,7 @@ export default {
// No VIN found
if (resultMap.vinLookupResponse.error) {
this.displayVinNotFoundAlert = true;
this.previouslyEnteredCarId = null;
this.$refs.siteFooter.disableForwardButton();
return this.$refs.siteFooter.removeLoader();
}