From 27fc4162b48b1953ca590c34caf1f3cda149d68c Mon Sep 17 00:00:00 2001 From: hiteshkumar87 Date: Wed, 30 Aug 2023 13:18:02 +0530 Subject: [PATCH] unmatched vehicle and validation unmatched vehicle and validation --- .../dropdown-question/dropdown-question.vue | 10 +++- .../vehicle-question/vehicle-question.vue | 6 ++- src/layouts/vehicle/vehicle.vue | 53 ++++++------------- 3 files changed, 29 insertions(+), 40 deletions(-) diff --git a/src/digital-components/dropdown-question/dropdown-question.vue b/src/digital-components/dropdown-question/dropdown-question.vue index 6c032b740..70bf6c90c 100644 --- a/src/digital-components/dropdown-question/dropdown-question.vue +++ b/src/digital-components/dropdown-question/dropdown-question.vue @@ -26,7 +26,7 @@ {{ value }} -
+
{{ errorMessage }}
@@ -56,6 +56,11 @@ export default { required: false, default: false, }, + disableValidationIfElementDisabled: { + type: Boolean, + required: false, + default: false, + }, }, setup(props) { const uuid = uuidv4(); @@ -110,6 +115,9 @@ export default { this.$emit("update:modelValue", newValue); }, }, + disableValidation() { + return this.disableValidationIfElementDisabled ? !this.isDisabled : true; + }, }, watch: { selectedOption(newValue) { diff --git a/src/layouts/vehicle/vehicle-question/vehicle-question.vue b/src/layouts/vehicle/vehicle-question/vehicle-question.vue index 79b58bfaa..171f5da3f 100644 --- a/src/layouts/vehicle/vehicle-question/vehicle-question.vue +++ b/src/layouts/vehicle/vehicle-question/vehicle-question.vue @@ -1,5 +1,9 @@