Feat: budget cap config update

This commit is contained in:
Damodar Lohani
2025-04-10 03:52:32 +00:00
parent 0f0606f7aa
commit 90d6cd40e6
3 changed files with 21 additions and 0 deletions
+1
View File
@@ -340,6 +340,7 @@ export type Plan = {
seats: PlanAddon;
};
trialDays: number;
budgetCapEnabled: boolean;
isAvailable: boolean;
selfService: boolean;
premiumSupport: boolean;
@@ -102,6 +102,16 @@
</svelte:fragment>
Upgrade to a Pro plan to manage when you receive billing alerts for your organization.
</Alert>
{:else if !$currentPlan.budgetCapEnabled}
<Alert type="info">
<svelte:fragment slot="title">Billing alerts disabled</svelte:fragment>
Billing alerts are disabled for your current plan. For more information
<a
class="link"
href="https://appwrite.io/pricing"
target="_blank"
rel="noopener noreferrer">view our pricing guide.</a>
</Alert>
{:else}
<FormList>
<Alert type="info">
@@ -71,6 +71,16 @@
target="_blank"
rel="noopener noreferrer">view our pricing guide.</a>
</Alert>
{:else if !$currentPlan.budgetCapEnabled}
<Alert type="info">
<svelte:fragment slot="title">Budget cap disabled</svelte:fragment>
Budget caps are disabled for your current plan. For more information
<a
class="link"
href="https://appwrite.io/pricing"
target="_blank"
rel="noopener noreferrer">view our pricing guide.</a>
</Alert>
{:else}
<FormList>
<InputSwitch id="cap-active" label="Enable budget cap" bind:value={capActive}>