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" />
|
class="dark-header" />
|
||||||
|
|
||||||
<div class="px-4">
|
<div class="px-4">
|
||||||
<vehicleReview cmsWidgetName="VehicleReviewWidget" :vehicle="vehicleInfo" />
|
<vehicleReview
|
||||||
|
cmsWidgetName="VehicleReviewWidget"
|
||||||
|
:vehicle="vehicleInfo"
|
||||||
|
@edit-clicked="navigateToVehicleYear" />
|
||||||
<hr class="my-0" />
|
<hr class="my-0" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -91,6 +94,12 @@ export default {
|
||||||
},
|
},
|
||||||
backButtonAction() {},
|
backButtonAction() {},
|
||||||
forwardButtonAction() {},
|
forwardButtonAction() {},
|
||||||
|
navigateToVehicleYear() {
|
||||||
|
this.$router.navigateWithoutSaving(
|
||||||
|
this.navigationScenarios.REVIEW_VEHICLE_EDIT,
|
||||||
|
this.$route
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
subHeaderTitle() {
|
subHeaderTitle() {
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ const fmgPageValues = {
|
||||||
SERVICE_LOCATION: "service-location",
|
SERVICE_LOCATION: "service-location",
|
||||||
HERITAGE: "heritage",
|
HERITAGE: "heritage",
|
||||||
SCHEDULE: "schedule",
|
SCHEDULE: "schedule",
|
||||||
|
REVIEW: "review",
|
||||||
};
|
};
|
||||||
|
|
||||||
export { fmgPageValues };
|
export { fmgPageValues };
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,9 @@ const navigationScenarios = {
|
||||||
|
|
||||||
// Scheduling
|
// Scheduling
|
||||||
SELECTED_LOCATION: "SELECTED_LOCATION",
|
SELECTED_LOCATION: "SELECTED_LOCATION",
|
||||||
|
|
||||||
|
// Review
|
||||||
|
REVIEW_VEHICLE_EDIT: "REVIEW_VEHICLE_EDIT",
|
||||||
};
|
};
|
||||||
|
|
||||||
export { navigationScenarios };
|
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