Merge pull request #1787 from appwrite/feat-budget-cap-config

Feat: budget cap config update
This commit is contained in:
Damodar Lohani authored and GitHub committed 2025-04-10 10:00:51 +05:45
commit 4e978bc7f1
3 files changed
+13

No files matched your search

+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,12 @@
</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">Budget cap disabled</svelte:fragment>
Budget caps are not supported on your current plan. For more information, please
reach out to your customer success manager.
</Alert>
{:else}
<FormList>
<Alert type="info">
@@ -71,6 +71,12 @@
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 not supported on your current plan. For more information, please
reach out to your customer success manager.
</Alert>
{:else}
<FormList>
<InputSwitch id="cap-active" label="Enable budget cap" bind:value={capActive}>