diff --git a/src/layouts/license-plate-lookup/license-plate-lookup.vue b/src/layouts/license-plate-lookup/license-plate-lookup.vue index fb2c2bfbf..ffa54cedc 100644 --- a/src/layouts/license-plate-lookup/license-plate-lookup.vue +++ b/src/layouts/license-plate-lookup/license-plate-lookup.vue @@ -3,7 +3,30 @@ - + + + + + + 0){ this.$router.navigateAfterSave(this.navigationScenarios.CONTINUING_WITH_PARTS_QUESTION, this.$route, {}, {}, partsData.data); return; - } else if(!partsData.data.partsOrQuestions.partQuestions.length && partsData.data.partsOrQuestions.parts.length > 1) { + } else if((!partsData.data.partsOrQuestions[0].partQuestions || partsData.data.partsOrQuestions[0].partQuestions.length < 1) && partsData.data.partsOrQuestions[0].parts.length > 1) { this.$router.navigateAfterSave(this.navigationScenarios.CONTINUING_WITH_MULTIPLE_PARTS, this.$route, {}, {}, partsData.data); return; } else { @@ -135,7 +168,7 @@ export default { lookupVin(plate, state) { return baseMixin.methods.dispatchNonBlockingStoreAction( storeActions.LOOKUP_VIN_BY_PLATE, - { plate, state } + { licensePlate: plate, licenseState: state } ); }, updateStore() { @@ -163,7 +196,7 @@ export default { funnelHeader, funnelFooter, vehicleBanner, - textboxQuestion, + alert, funnelSubHeader, }, }; diff --git a/src/router/router-constants/navigation-scenarios.js b/src/router/router-constants/navigation-scenarios.js index 9fd1c6311..e55385943 100644 --- a/src/router/router-constants/navigation-scenarios.js +++ b/src/router/router-constants/navigation-scenarios.js @@ -7,7 +7,10 @@ const navigationScenarios = { SELECTED_PARTS: "SELECTED_PARTS", SELECTED_DAMAGE_WITH_SINGLE_PART: "SELECTED_DAMAGE_WITH_SINGLE_PART", SELECTED_DAMAGE_WITH_MULTIPLE_PARTS: "SELECTED_DAMAGE_WITH_MULTIPLE_PARTS", - SELECTED_DAMAGE_WITH_PART_QUESTIONS: "SELECTED_DAMAGE_WITH_PART_QUESTIONS" + SELECTED_DAMAGE_WITH_PART_QUESTIONS: "SELECTED_DAMAGE_WITH_PART_QUESTIONS", + CONTINUING_WITH_PARTS_QUESTION: "CONTINUING_WITH_PARTS_QUESTION", + CONTINUING_WITH_MULTIPLE_PARTS: "CONTINUING_WITH_MULTIPLE_PARTS", + CONTINUING_WITH_SINGLE_PART: "CONTINUING_WITH_SINGLE_PART" }; export { navigationScenarios }; diff --git a/src/store/index.js b/src/store/index.js index 2cdac764d..18593c897 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -220,12 +220,13 @@ export const actions = { }, }); }, - lookupVinByPlate(context, { plate }) { + lookupVinByPlate(context, { licensePlate, licenseState }) { return globalMethods.callHttpClient({ method: endpoints.LookupVinByPlate.method, endpoint: endpoints.LookupVinByPlate.url, payload: { - plate: plate, + licensePlate: licensePlate, + licenseState: licenseState }, }); },