From 36ceebb725294b84beb2d7af5f3bc53c6d7c12ba Mon Sep 17 00:00:00 2001 From: CarlNation Date: Mon, 24 Jul 2023 11:17:50 -0400 Subject: [PATCH 1/2] CSR-1573 backout previous change and use vee validate to accomodate the defect --- src/layouts/vehicle-damage/vehicle-damage.vue | 2 +- src/layouts/vin-lookup/vin-lookup.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layouts/vehicle-damage/vehicle-damage.vue b/src/layouts/vehicle-damage/vehicle-damage.vue index dde00cb9a..ae89a61e6 100644 --- a/src/layouts/vehicle-damage/vehicle-damage.vue +++ b/src/layouts/vehicle-damage/vehicle-damage.vue @@ -360,7 +360,7 @@ export default { } } // If vin already exists, navigate directly to vin-lookup - else if (store.getters.vehicle.vin && store.getters.vehicle.vin.length === 17) { + else if (store.getters.vehicle.vin) { this.$router.navigateWithSaving( this.navigationScenarios.CLICKED_FORWARD_WITH_VIN, this.$route diff --git a/src/layouts/vin-lookup/vin-lookup.vue b/src/layouts/vin-lookup/vin-lookup.vue index a6b902c09..96c4ffb90 100644 --- a/src/layouts/vin-lookup/vin-lookup.vue +++ b/src/layouts/vin-lookup/vin-lookup.vue @@ -15,7 +15,7 @@ v-model="vin" customInputId="vin" isRequired - validationRules="vin-required|vin-format" + :validationRules="!vinPopulatedOnPageLoad ? 'vin-required|vin-format' : ''" :isDisabled="vinPopulatedOnPageLoad" maxLength="17" :mask="vinMask" From 4c841a52ba86ac57eb027f1ebbf68649f33a0abf Mon Sep 17 00:00:00 2001 From: CarlNation Date: Mon, 24 Jul 2023 11:35:09 -0400 Subject: [PATCH 2/2] CSR-1573 --- src/layouts/vin-lookup/vin-lookup.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/layouts/vin-lookup/vin-lookup.vue b/src/layouts/vin-lookup/vin-lookup.vue index 96c4ffb90..faf978f92 100644 --- a/src/layouts/vin-lookup/vin-lookup.vue +++ b/src/layouts/vin-lookup/vin-lookup.vue @@ -15,7 +15,9 @@ v-model="vin" customInputId="vin" isRequired - :validationRules="!vinPopulatedOnPageLoad ? 'vin-required|vin-format' : ''" + :validationRules=" + !vinPopulatedOnPageLoad ? 'vin-required|vin-format' : '' + " :isDisabled="vinPopulatedOnPageLoad" maxLength="17" :mask="vinMask"