From dadbd107f70e8447d625d7dd6e88c589a425e551 Mon Sep 17 00:00:00 2001 From: Anni Piragauta Date: Wed, 20 Nov 2024 18:07:38 -0500 Subject: [PATCH] fix: disable send button while getting quotes --- src/common/styles/_utilities.scss | 4 ++++ src/pegout/components/PegoutForm.vue | 4 ++-- src/pegout/components/PegoutOption.vue | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/common/styles/_utilities.scss b/src/common/styles/_utilities.scss index e9b818e6..755bcf63 100644 --- a/src/common/styles/_utilities.scss +++ b/src/common/styles/_utilities.scss @@ -4,4 +4,8 @@ .text-balance { text-wrap: balance; +} + +.grecaptcha-badge { + bottom:70px !important; } \ No newline at end of file diff --git a/src/pegout/components/PegoutForm.vue b/src/pegout/components/PegoutForm.vue index eb728f80..85cc4c20 100644 --- a/src/pegout/components/PegoutForm.vue +++ b/src/pegout/components/PegoutForm.vue @@ -283,8 +283,8 @@ export default defineComponent({ })); const isValid = computed(() => { - if (selectedQuote.value === undefined) return isReadyToCreate.value; - return isFlyoverReady.value; + if (selectedQuote.value === undefined) return !loadingQuotes.value && isReadyToCreate.value; + return !loadingQuotes.value && isFlyoverReady.value; }); const flyoverResponded = computed(() => pegoutQuotes.value.length > 0 || props.flyoverEnabled); diff --git a/src/pegout/components/PegoutOption.vue b/src/pegout/components/PegoutOption.vue index ddd8b86f..47d63039 100644 --- a/src/pegout/components/PegoutOption.vue +++ b/src/pegout/components/PegoutOption.vue @@ -95,7 +95,7 @@