mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Feat: budget cap config update
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user