Add navigation when edit is clicked

This commit is contained in:
Chloe Herd 2023-06-01 14:14:55 -04:00
parent a919af0dab
commit bd140cd3b6
4 changed files with 23 additions and 1 deletions

View file

@ -37,7 +37,10 @@
class="dark-header" />
<div class="px-4">
<vehicleReview cmsWidgetName="VehicleReviewWidget" :vehicle="vehicleInfo" />
<vehicleReview
cmsWidgetName="VehicleReviewWidget"
:vehicle="vehicleInfo"
@edit-clicked="navigateToVehicleYear" />
<hr class="my-0" />
</div>
@ -91,6 +94,12 @@ export default {
},
backButtonAction() {},
forwardButtonAction() {},
navigateToVehicleYear() {
this.$router.navigateWithoutSaving(
this.navigationScenarios.REVIEW_VEHICLE_EDIT,
this.$route
);
},
},
computed: {
subHeaderTitle() {

View file

@ -17,6 +17,7 @@ const fmgPageValues = {
SERVICE_LOCATION: "service-location",
HERITAGE: "heritage",
SCHEDULE: "schedule",
REVIEW: "review",
};
export { fmgPageValues };

View file

@ -48,6 +48,9 @@ const navigationScenarios = {
// Scheduling
SELECTED_LOCATION: "SELECTED_LOCATION",
// Review
REVIEW_VEHICLE_EDIT: "REVIEW_VEHICLE_EDIT",
};
export { navigationScenarios };

View file

@ -435,6 +435,15 @@ const routingTable = function (store) {
},
],
},
{
fmgPageValue: fmgPageValues.REVIEW,
maps: [
{
scenario: navigationScenarios.REVIEW_VEHICLE_EDIT,
destinationFmgPageValue: fmgPageValues.VEHICLE_YEAR,
},
],
},
];
};