mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-06 00:02:13 +00:00
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:
@@ -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
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user