Merge pull request #752 from Safelite/feature/SSR-1304
SSR-1304 - small tweaks to license-plate-lookup functionality
This commit is contained in:
commit
f41b9afcf7
1 changed files with 6 additions and 2 deletions
|
|
@ -170,7 +170,8 @@ export default {
|
||||||
const vinYmmFound =
|
const vinYmmFound =
|
||||||
// eslint-disable-next-line max-len
|
// eslint-disable-next-line max-len
|
||||||
`${this.customAlertData?.vehicleInfo?.year} ${this.customAlertData?.vehicleInfo?.make} ${this.customAlertData?.vehicleInfo?.model}`;
|
`${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(
|
return this.getCmsContent(
|
||||||
'AlertMatchedDifferentVehicleWidget',
|
'AlertMatchedDifferentVehicleWidget',
|
||||||
|
|
@ -206,7 +207,8 @@ export default {
|
||||||
const vinYmmFound =
|
const vinYmmFound =
|
||||||
// eslint-disable-next-line max-len
|
// eslint-disable-next-line max-len
|
||||||
`${this.customAlertData?.vehicleInfo?.year} ${this.customAlertData?.vehicleInfo?.make} ${this.customAlertData?.vehicleInfo?.model}`;
|
`${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();
|
return vinYmmFound.toLowerCase() === vinYmmExpected.toLowerCase();
|
||||||
},
|
},
|
||||||
stateOptions: {
|
stateOptions: {
|
||||||
|
|
@ -224,6 +226,7 @@ export default {
|
||||||
this.$refs.siteFooter.updateButtonText(this.getCmsContent('SiteFooterWidget', 'ForwardButtonText'));
|
this.$refs.siteFooter.updateButtonText(this.getCmsContent('SiteFooterWidget', 'ForwardButtonText'));
|
||||||
},
|
},
|
||||||
licenseState() {
|
licenseState() {
|
||||||
|
this.$refs.siteFooter.updateButtonText(this.getCmsContent('SiteFooterWidget', 'ForwardButtonText'));
|
||||||
this.$refs.siteFooter.enableForwardAction();
|
this.$refs.siteFooter.enableForwardAction();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -272,6 +275,7 @@ export default {
|
||||||
// No VIN found
|
// No VIN found
|
||||||
if (resultMap.vinLookupResponse.error) {
|
if (resultMap.vinLookupResponse.error) {
|
||||||
this.displayVinNotFoundAlert = true;
|
this.displayVinNotFoundAlert = true;
|
||||||
|
this.previouslyEnteredCarId = null;
|
||||||
this.$refs.siteFooter.disableForwardButton();
|
this.$refs.siteFooter.disableForwardButton();
|
||||||
return this.$refs.siteFooter.removeLoader();
|
return this.$refs.siteFooter.removeLoader();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue