feat: enable automatic billing by default (#3403)

* feat: enable automatic billing by default

* chore: set ee ref

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
This commit is contained in:
HugoCasa
2024-03-14 15:22:50 +01:00
committed by GitHub
co-authored by Ruben Fiszel
parent fd8f1130ed
commit 92db3d92d9
3 changed files with 10 additions and 4 deletions
+2 -1
View File
@@ -1 +1,2 @@
ddf6266d267f7811b67109ae3f8aae82c4adc642
ddf6266d267f7811b67109ae3f8aae82c4adc642
@@ -6,6 +6,7 @@
export let options: {
left?: string
leftTooltip?: string
right?: string
rightTooltip?: string
} = {}
@@ -39,6 +40,9 @@
style={textStyle}
>
{options?.left}
{#if options?.leftTooltip}
<Tooltip>{options?.leftTooltip}</Tooltip>
{/if}
</span>
{/if}
@@ -133,6 +133,9 @@
<Toggle
checked={premiumInfo?.automatic_billing}
options={{
left: 'Static number of seats',
leftTooltip:
'You will be billed for a fixed number of seats, you have to manually adapt the number of seats in the customer portal based on your usage.',
right: 'Automatic billing based on usage',
rightTooltip:
'You will be billed for the maximum number of seats used in a given billing period.'
@@ -296,9 +299,7 @@
<Button
size="xs"
color="bg-blue-500 text-white"
href="/api/w/{$workspaceStore}/workspaces/checkout?plan=team{premiumInfo?.usedSeats
? `&seats=${premiumInfo.usedSeats}`
: ''}"
href="/api/w/{$workspaceStore}/workspaces/checkout?plan=team"
>
Upgrade to Team plan</Button
>