From bf96c9652b1b82e3cb6cbd77c7287437eb7d9000 Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Fri, 29 Apr 2022 09:13:29 -0400 Subject: [PATCH] Added temporary hard-code to go to address-lookup when the vehicle year is 2014 --- src/layouts/vehicle-damage/vehicle-damage.vue | 10 ++++++++++ src/router/router-constants/routing-table.js | 14 ++++++++------ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/layouts/vehicle-damage/vehicle-damage.vue b/src/layouts/vehicle-damage/vehicle-damage.vue index 543a02bef..959a3e13c 100644 --- a/src/layouts/vehicle-damage/vehicle-damage.vue +++ b/src/layouts/vehicle-damage/vehicle-damage.vue @@ -287,6 +287,16 @@ export default { return; } + // Temporary easter egg to navigate to address-lookup. + + if (store.getters.vehicle.year === 2014) { + + this.$router.navigateAfterSave("TEMPORARY_TO_ADDRESS_LOOKUP", this.$route); + + return; + + } + // If vin already exists, navigate directly to vin-lookup if(this.$store.getters.vehicle.vin){ this.$router.navigate(this.navigationScenarios.CLICKED_FORWARD_WITH_VIN, this.$route); diff --git a/src/router/router-constants/routing-table.js b/src/router/router-constants/routing-table.js index 109c27075..9f412288a 100644 --- a/src/router/router-constants/routing-table.js +++ b/src/router/router-constants/routing-table.js @@ -57,24 +57,26 @@ const routingTable = [ scenario: navigationScenarios.CLICKED_BACK, destinationFmgPageValue: fmgPageValues.VEHICLE_STYLE, }, - // UNDO THESE CHANGES BEFORE MERGING TO develop { scenario: navigationScenarios.CLICKED_FORWARD_WITH_VIN, - destinationFmgPageValue: fmgPageValues.VIN_LOOKUP, + destinationFmgPageValue: fmgPageValues.LICENSE_PLATE_LOOKUP, }, { scenario: navigationScenarios.SELECTED_DAMAGE_WITH_SINGLE_PART, - destinationFmgPageValue: fmgPageValues.ADDRESS_LOOKUP + destinationFmgPageValue: fmgPageValues.LICENSE_PLATE_LOOKUP, }, { scenario: navigationScenarios.SELECTED_DAMAGE_WITH_MULTIPLE_PARTS, - destinationFmgPageValue: fmgPageValues.ADDRESS_LOOKUP, + destinationFmgPageValue: fmgPageValues.VEHICLE_PARTS, }, { scenario: navigationScenarios.SELECTED_DAMAGE_WITH_PART_QUESTIONS, - destinationFmgPageValue: fmgPageValues.ADDRESS_LOOKUP, + destinationFmgPageValue: fmgPageValues.LICENSE_PLATE_LOOKUP,//This might be temporary + }, + { + scenario: navigationScenarios.TEMPORARY_TO_ADDRESS_LOOKUP, + destinationFmgPageValue: fmgPageValues.ADDRESS_LOOKUP, //This will be temporary }, - // END ], }, {