This commit is contained in:
Darshan
2025-12-23 17:59:09 +05:30
parent 6cac26f157
commit 3735257457
5 changed files with 6 additions and 12 deletions
+2 -2
View File
@@ -47,8 +47,8 @@
title={` Your organization will switch to ${tierToPlan(BillingPlan.FREE).name} plan on ${toLocaleDate(
$organization.billingNextInvoiceDate
)}`}>
You will retain access to {tierToPlan($organization.billingPlan).name} plan features until
your billing period ends. After that,
You will retain access to {tierToPlan($organization.billingPlan).name} plan features until your
billing period ends. After that,
{#if excess?.members > 0}<span class="u-bold">
all team members except the owner will be removed,</span>
{:else}
+1 -1
View File
@@ -16,7 +16,7 @@ export type OrganizationError = {
export type Organization = Models.Team<Record<string, unknown>> & {
billingBudget: number;
billingPlan: Tier;
billingPlanDetails: Plan; /* unused for now! */
billingPlanDetails: Plan /* unused for now! */;
budgetAlerts: number[];
paymentMethodId: string;
backupPaymentMethodId: string;
@@ -51,8 +51,7 @@
{currentPlan.name} plan
</Typography.Text>
<Typography.Text>
{isTrial ||
$organization?.billingPlan === BillingPlan.GITHUB_EDUCATION
{isTrial || $organization?.billingPlan === BillingPlan.GITHUB_EDUCATION
? formatCurrency(0)
: currentPlan
? formatCurrency(currentPlan?.price)
@@ -68,11 +68,7 @@
keys: ['c'],
disabled:
$wizard.show ||
isServiceLimited(
'functions',
$organization?.billingPlan,
data.functions?.total
) ||
isServiceLimited('functions', $organization?.billingPlan, data.functions?.total) ||
!$canWriteFunctions,
icon: IconPlus,
group: 'functions'
@@ -26,8 +26,7 @@
import { IconExternalLink } from '@appwrite.io/pink-icons-svelte';
$: buttonDisabled =
isCloud &&
isServiceLimited('functions', $organization?.billingPlan, $functionsList?.total);
isCloud && isServiceLimited('functions', $organization?.billingPlan, $functionsList?.total);
</script>
<Container>