From 26dead5f3eedb500a356614de8f45fef20af9604 Mon Sep 17 00:00:00 2001 From: Chloe Herd Date: Thu, 13 Jun 2024 16:48:01 -0400 Subject: [PATCH] Add no-vin option --- src/constants/vin-lookup-method-selections.js | 1 + src/layouts/estimate/estimate.vue | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/constants/vin-lookup-method-selections.js b/src/constants/vin-lookup-method-selections.js index 8f78ecf68..3147a9ecb 100644 --- a/src/constants/vin-lookup-method-selections.js +++ b/src/constants/vin-lookup-method-selections.js @@ -2,6 +2,7 @@ const vinLookupMethodSelections = { MANUALVIN: "ManualVin", LICENSEPLATE: "LicensePlate", HOMEADDRESS: "HomeAddress", + DECLINE: "Decline", }; export { vinLookupMethodSelections }; diff --git a/src/layouts/estimate/estimate.vue b/src/layouts/estimate/estimate.vue index b298132ca..48613b4ca 100644 --- a/src/layouts/estimate/estimate.vue +++ b/src/layouts/estimate/estimate.vue @@ -323,6 +323,12 @@ export default { this.$route ); } + if (this.selectedVinLookupMethod === vinLookupMethodSelections.DECLINE) { + return this.$router.navigateWithSaving( + this.navigationScenarios.SELECTED_NO_VIN, + this.$route + ); + } }, }, computed: {