From e160ea062ad2dfbc78079bdfbaa7aa70866e79c3 Mon Sep 17 00:00:00 2001 From: andrewwallacespeckle <139135120+andrewwallacespeckle@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:44:50 +0000 Subject: [PATCH] feat(fe2): Billing - Add tooltips to disabled buttons (#3615) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add various disabled state tooltips * Tidy up conditionals * Fix tippy reactivity bug * Fix conditional * Minor changes * Fix typo * Update Plan.vue * Update tooltip conditions * v-else-if * Add comment --------- Co-authored-by: Benjamin Ottensten Co-authored-by: Gergő Jedlicska --- .../workspaces/billing/PricingTable/Plan.vue | 118 +++++++++++++----- .../lib/billing/composables/actions.ts | 4 +- 2 files changed, 91 insertions(+), 31 deletions(-) diff --git a/packages/frontend-2/components/settings/workspaces/billing/PricingTable/Plan.vue b/packages/frontend-2/components/settings/workspaces/billing/PricingTable/Plan.vue index 306df4857..32f6d5e27 100644 --- a/packages/frontend-2/components/settings/workspaces/billing/PricingTable/Plan.vue +++ b/packages/frontend-2/components/settings/workspaces/billing/PricingTable/Plan.vue @@ -26,7 +26,6 @@ v-model="isYearlyIntervalSelected" :show-label="false" name="domain-protection" - :disabled="!toggleEnabled" @update:model-value="(newValue) => $emit('onYearlyIntervalSelected', newValue)" /> Billed annually @@ -35,9 +34,22 @@
- + +
+ +
+
+ + {{ buttonText }} + +
{{ buttonText }} +
+ + {{ buttonText }} + +