From d234431b7e29d25cadc6dfdca0b508099536c06c Mon Sep 17 00:00:00 2001 From: HugoCasa Date: Fri, 17 Jan 2025 16:48:19 +0100 Subject: [PATCH] nits cloud team plan settings (#5086) --- .../components/settings/PremiumInfo.svelte | 100 ++++++++++-------- 1 file changed, 58 insertions(+), 42 deletions(-) diff --git a/frontend/src/lib/components/settings/PremiumInfo.svelte b/frontend/src/lib/components/settings/PremiumInfo.svelte index 748c8ab457..9ca62aa589 100644 --- a/frontend/src/lib/components/settings/PremiumInfo.svelte +++ b/frontend/src/lib/components/settings/PremiumInfo.svelte @@ -169,13 +169,23 @@ -
+
-
Plans
+
+ {#if premiumInfo?.premium && plan} + Plan: {capitalize(plan)} plan{plan === 'team' && premiumInfo.automatic_billing + ? ' (usage-based)' + : plan === 'team' + ? ` (${premiumInfo.seats} seat${premiumInfo.seats > 1 ? 's' : ''})` + : ''} + {:else} + Plan: Free plan + {/if} +
{#if customer_id} -
+
+ {#if premiumInfo?.premium && plan === 'team'} + + {/if}
+ {#if (estimatedSeats + (estimatedExecs - estimatedSeats)) * 10 > 700} + + You should consider subscribing to Cloud Enterprise + + {/if}