diff --git a/src/helpers/heritage-integration/navigation-helper.js b/src/helpers/heritage-integration/navigation-helper.js
index 49c4ab354..221b7b79b 100644
--- a/src/helpers/heritage-integration/navigation-helper.js
+++ b/src/helpers/heritage-integration/navigation-helper.js
@@ -93,7 +93,7 @@ async function getLatestPageForRedirection() {
return fmgPageValues.VEHICLE_DAMAGE;
} else {
if (store.getters.vehicle.vin) {
- return fmgPageValues.LICENSE_PLATE_LOOKUP;
+ return fmgPageValues.VIN_LOOKUP;
} else {
return fmgPageValues.VIN_LOOKUP;
}
diff --git a/src/layouts/license-plate-lookup/license-plate-lookup.vue b/src/layouts/license-plate-lookup/license-plate-lookup.vue
index 7ca539b78..03b304bea 100644
--- a/src/layouts/license-plate-lookup/license-plate-lookup.vue
+++ b/src/layouts/license-plate-lookup/license-plate-lookup.vue
@@ -167,9 +167,6 @@ export default {
vm.setCmsContent(resultMap.cmsContent);
});
},
- props: {
- validationRules: String,
- },
data() {
return {
isRegistrationZipServicable: true,
diff --git a/src/layouts/vin-lookup/vin-lookup.vue b/src/layouts/vin-lookup/vin-lookup.vue
index b836454bc..ef47a043c 100644
--- a/src/layouts/vin-lookup/vin-lookup.vue
+++ b/src/layouts/vin-lookup/vin-lookup.vue
@@ -62,16 +62,9 @@
:manualHeadline="MatchedDifferentVehicleAlertHeader"
:manualCopy="MatchedDifferentVehicleAlertBody"
v-model="customAlertData"
- v-if="matchedDifferentVehicle"
+ v-if="isCarIdDifferent"
alertClass="alert-danger"
/>
-
-
0,
};
},
computed: {
+ perfectMatchNewVinAlert() {
+ return this.vinPopulatedOnPageLoad && this.vin === this.getVinFromStore();
+ },
MatchedDifferentVehicleAlertHeader(){
- let text = this.getCmsContent("MatchedDifferentVehicle",
+ const text = this.getCmsContent("MatchedDifferentVehicle",
"HeadlineText").replaceAll("{custom:damage}", getDamageString());
return text;
},
MatchedDifferentVehicleAlertBody(){
- let text = this.getCmsContent("MatchedDifferentVehicle",
+ const text = this.getCmsContent("MatchedDifferentVehicle",
"BodyText").replaceAll("{custom:damage}", getDamageString()).replaceAll("{custom:vinlookupYear}", this.customAlertData?.vehicleInfo?.year).replaceAll("{custom:vinlookupMake}", this.customAlertData?.vehicleInfo?.make).replaceAll("{custom:vinlookupModel}",
this.customAlertData?.vehicleInfo?.model);
return text;
},
NoServiceZipHeader(){
- let text = this.getCmsContent("NoServiceZipWidget", "HeadlineText").replaceAll("{custom:serviceZip}", this.invalidZip);
+ const text = this.getCmsContent("NoServiceZipWidget", "HeadlineText").replaceAll("{custom:serviceZip}", this.invalidZip);
return text;
},
@@ -288,7 +269,7 @@ export default {
this.isVinValid = true;
this.isSelectedGlassAvailableForVehicle = await isGlassAvailableForCarId(vehicleLookup.data.carId);
this.$refs.funnelFooter.removeLoader();
- this.matchedDifferentVehicle = true;
+ this.isCarIdDifferent = true;
return;
}
this.updateStore(vehicleLookup.data);
diff --git a/src/router/router-constants/routing-table.js b/src/router/router-constants/routing-table.js
index 3290c43eb..0b887cdd1 100644
--- a/src/router/router-constants/routing-table.js
+++ b/src/router/router-constants/routing-table.js
@@ -114,19 +114,11 @@ const routingTable = [
maps: [
{
scenario: navigationScenarios.CLICKED_BACK,
- destinationFmgPageValue: fmgPageValues.REVEAL,
- },
- {
- scenario: navigationScenarios.CLICKED_BACK_WITH_VIN,
- destinationFmgPageValue: fmgPageValues.VEHICLE_DAMAGE,
- },
- {
- scenario: navigationScenarios.VIN_LOOKUP,
- destinationFmgPageValue: fmgPageValues.PART_QUESTIONS,
+ destinationFmgPageValue: fmgPageValues.ESTIMATE,
},
{
scenario: navigationScenarios.CLICKED_FORWARD,
- destinationFmgPageValue: fmgPageValues.ESTIMATE,
+ destinationFmgPageValue: fmgPageValues.VEHICLE_DAMAGE,
}
],
},
@@ -169,9 +161,9 @@ const routingTable = [
{
scenario: navigationScenarios.CLICKED_FORWARD,
destinationFmgPageValue: fmgPageValues.VEHICLE_DAMAGE,
- },
+ },
],
- },
+ },
];
export { routingTable };
diff --git a/src/store/index.js b/src/store/index.js
index 66005abd5..3c2bee5a4 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -145,16 +145,16 @@ export const mutations = {
state.order.vehicle.registration.address = registrationAddress;
},
updateServiceLocationZip(state, serviceLocationZip){
- state.order.serviceLocation.zip = serviceLocationZip;
+ state.order.vehicle.registration.zip = serviceLocationZip;
},
updateRegistrationCity(state, serviceCity){
- state.order.serviceLocation.city = serviceCity;
+ state.order.vehicle.registration.city = serviceCity;
},
updateRegistrationFirstName(state, firstName){
- state.order.serviceLocation.firstName = firstName;
+ state.order.vehicle.registration.firstName = firstName;
},
updateRegistrationLastName(state, lastName){
- state.order.serviceLocation.lastName = lastName;
+ state.order.vehicle.registration.lastName = lastName;
},
updateCustomerEmailAddress(state, customerEmailAddress){
state.order.customer.emailAddress = customerEmailAddress;