Add navigation when edit is clicked
This commit is contained in:
parent
a919af0dab
commit
bd140cd3b6
4 changed files with 23 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ const fmgPageValues = {
|
|||
SERVICE_LOCATION: "service-location",
|
||||
HERITAGE: "heritage",
|
||||
SCHEDULE: "schedule",
|
||||
REVIEW: "review",
|
||||
};
|
||||
|
||||
export { fmgPageValues };
|
||||
|
|
|
|||
|
|
@ -48,6 +48,9 @@ const navigationScenarios = {
|
|||
|
||||
// Scheduling
|
||||
SELECTED_LOCATION: "SELECTED_LOCATION",
|
||||
|
||||
// Review
|
||||
REVIEW_VEHICLE_EDIT: "REVIEW_VEHICLE_EDIT",
|
||||
};
|
||||
|
||||
export { navigationScenarios };
|
||||
|
|
|
|||
|
|
@ -435,6 +435,15 @@ const routingTable = function (store) {
|
|||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
fmgPageValue: fmgPageValues.REVIEW,
|
||||
maps: [
|
||||
{
|
||||
scenario: navigationScenarios.REVIEW_VEHICLE_EDIT,
|
||||
destinationFmgPageValue: fmgPageValues.VEHICLE_YEAR,
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue