Add edit action to navigate to vehicle-damage

This commit is contained in:
Chloe Herd 2023-06-06 16:33:44 -04:00
parent ea177efca9
commit 17a5325a7c
3 changed files with 11 additions and 1 deletions

View file

@ -107,7 +107,12 @@ export default {
this.$route this.$route
); );
}, },
editDamage() {}, editDamage() {
this.$router.navigateWithoutSaving(
this.navigationScenarios.CLICKED_DAMAGE_EDIT,
this.$route
);
},
}, },
computed: { computed: {
subHeaderTitle() { subHeaderTitle() {

View file

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

View file

@ -442,6 +442,10 @@ const routingTable = function (store) {
scenario: navigationScenarios.CLICKED_VEHICLE_EDIT, scenario: navigationScenarios.CLICKED_VEHICLE_EDIT,
destinationFmgPageValue: fmgPageValues.VEHICLE_YEAR, destinationFmgPageValue: fmgPageValues.VEHICLE_YEAR,
}, },
{
scenario: navigationScenarios.CLICKED_DAMAGE_EDIT,
destinationFmgPageValue: fmgPageValues.VEHICLE_DAMAGE,
},
], ],
}, },
]; ];