From 994f248d3f4b5f6d57717d5dec4a5b4d4d11ad38 Mon Sep 17 00:00:00 2001 From: Chloe Herd Date: Mon, 5 Jun 2023 16:13:09 -0400 Subject: [PATCH] Address tech review comments --- src/layouts/review/review.vue | 6 +++--- src/router/router-constants/navigation-scenarios.js | 2 +- src/router/router-constants/routing-table.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/layouts/review/review.vue b/src/layouts/review/review.vue index 2a152f8fd..3f7e45639 100644 --- a/src/layouts/review/review.vue +++ b/src/layouts/review/review.vue @@ -40,7 +40,7 @@ + @edit-clicked="editVehicle" />
@@ -93,9 +93,9 @@ export default { }, backButtonAction() {}, forwardButtonAction() {}, - navigateToVehicleYear() { + editVehicle() { this.$router.navigateWithoutSaving( - this.navigationScenarios.REVIEW_VEHICLE_EDIT, + this.navigationScenarios.CLICKED_VEHICLE_EDIT, this.$route ); }, diff --git a/src/router/router-constants/navigation-scenarios.js b/src/router/router-constants/navigation-scenarios.js index 012d327d7..4b61687cb 100644 --- a/src/router/router-constants/navigation-scenarios.js +++ b/src/router/router-constants/navigation-scenarios.js @@ -50,7 +50,7 @@ const navigationScenarios = { SELECTED_LOCATION: "SELECTED_LOCATION", // Review - REVIEW_VEHICLE_EDIT: "REVIEW_VEHICLE_EDIT", + CLICKED_VEHICLE_EDIT: "CLICKED_VEHICLE_EDIT", }; export { navigationScenarios }; diff --git a/src/router/router-constants/routing-table.js b/src/router/router-constants/routing-table.js index 4c6232bfc..0f2bfa355 100644 --- a/src/router/router-constants/routing-table.js +++ b/src/router/router-constants/routing-table.js @@ -439,7 +439,7 @@ const routingTable = function (store) { fmgPageValue: fmgPageValues.REVIEW, maps: [ { - scenario: navigationScenarios.REVIEW_VEHICLE_EDIT, + scenario: navigationScenarios.CLICKED_VEHICLE_EDIT, destinationFmgPageValue: fmgPageValues.VEHICLE_YEAR, }, ],