From 372a0cafad6852c44294bd487cbdf10b8838c03d Mon Sep 17 00:00:00 2001 From: Johnny shultz Date: Tue, 8 Jul 2025 15:28:19 -0400 Subject: [PATCH] CASH-816 CASH-816 post tech review changes, made fix in modal to avoid having to fix unit tests --- src/digital-components/modal/modal.vue | 8 +-- .../shop-question/shop-question-popup.vue | 62 +++---------------- 2 files changed, 13 insertions(+), 57 deletions(-) diff --git a/src/digital-components/modal/modal.vue b/src/digital-components/modal/modal.vue index 55feca36f..4edfb8bca 100644 --- a/src/digital-components/modal/modal.vue +++ b/src/digital-components/modal/modal.vue @@ -39,7 +39,10 @@ :isDisabled="footerButtonDisabled" :buttonText="footerButtonText" @click-event="validateAndEmit" - :class="isFooterButtonDisabled && 'form-test-invalid'" /> + :class="[ + isFooterButtonDisabled && 'form-test-invalid', + { 'form-test-invalid': footerButtonDisabled === true } + ]" /> @@ -139,9 +142,6 @@ export default { }, computed: { isFooterButtonDisabled() { - if (this.footerButtonDisabled !== undefined) { - return this.footerButtonDisabled; - } if (!this.meta.touched) { return !this.meta.valid; } diff --git a/src/layouts/service-location/shop-question/shop-question-popup.vue b/src/layouts/service-location/shop-question/shop-question-popup.vue index 9f7507d77..0bc2376c1 100644 --- a/src/layouts/service-location/shop-question/shop-question-popup.vue +++ b/src/layouts/service-location/shop-question/shop-question-popup.vue @@ -1,18 +1,10 @@