Add edit functionality

This commit is contained in:
Chloe Herd 2023-07-12 14:38:52 -04:00
parent 20d10ef0c2
commit f0a8c0f952
3 changed files with 11 additions and 1 deletions

View file

@ -151,7 +151,12 @@ export default {
this.$route this.$route
); );
}, },
editServicePackage() {}, editServicePackage() {
this.$router.navigateWithoutSaving(
this.navigationScenarios.CLICKED_SERVICE_PACKAGE_EDIT,
this.$route
);
},
}, },
computed: { computed: {
subHeaderTitle() { subHeaderTitle() {

View file

@ -49,6 +49,7 @@ const navigationScenarios = {
// Review // Review
CLICKED_VEHICLE_EDIT: "CLICKED_VEHICLE_EDIT", CLICKED_VEHICLE_EDIT: "CLICKED_VEHICLE_EDIT",
CLICKED_DAMAGE_EDIT: "CLICKED_DAMAGE_EDIT", CLICKED_DAMAGE_EDIT: "CLICKED_DAMAGE_EDIT",
CLICKED_SERVICE_PACKAGE_EDIT: "CLICKED_SERVICE_PACKAGE_EDIT",
}; };
export { navigationScenarios }; export { navigationScenarios };

View file

@ -463,6 +463,10 @@ const routingTable = function (store) {
scenario: navigationScenarios.CLICKED_DAMAGE_EDIT, scenario: navigationScenarios.CLICKED_DAMAGE_EDIT,
destinationFmgPageValue: fmgPageValues.VEHICLE_DAMAGE, destinationFmgPageValue: fmgPageValues.VEHICLE_DAMAGE,
}, },
{
scenario: navigationScenarios.CLICKED_SERVICE_PACKAGE_EDIT,
destinationFmgPageValue: fmgPageValues.QUOTE,
},
{ {
scenario: navigationScenarios.CLICKED_BACK, scenario: navigationScenarios.CLICKED_BACK,
destinationFmgPageValue: fmgPageValues.CUSTOMER_DETAILS, destinationFmgPageValue: fmgPageValues.CUSTOMER_DETAILS,