mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: review
This commit is contained in:
@@ -19,7 +19,7 @@ export type Organization = Models.Team<Record<string, unknown>> & {
|
||||
billingAddressId?: string;
|
||||
amount: number;
|
||||
billingTaxId?: string;
|
||||
billingPlanDowngrade?: string;
|
||||
billingPlanDowngrade?: Tier;
|
||||
};
|
||||
|
||||
export type OrganizationList = {
|
||||
|
||||
@@ -111,8 +111,8 @@
|
||||
{/if}
|
||||
{#if $organization?.billingPlanDowngrade}
|
||||
<Alert type="info" class="common-section">
|
||||
Your organization will change to a {tierToPlan(BillingPlan.FREE).name} plan once your current
|
||||
billing cycle ends and your invoice is paid on {toLocaleDate(
|
||||
Your organization will change to a {tierToPlan($organization?.billingPlanDowngrade)
|
||||
.name} plan once your current billing cycle ends and your invoice is paid on {toLocaleDate(
|
||||
$organization.billingNextInvoiceDate
|
||||
)}.
|
||||
</Alert>
|
||||
|
||||
@@ -111,9 +111,9 @@
|
||||
}
|
||||
|
||||
async function handleSubmit() {
|
||||
if (billingPlan === BillingPlan.FREE) {
|
||||
if (isDowngrade) {
|
||||
await downgrade();
|
||||
} else {
|
||||
} else if (isUpgrade) {
|
||||
await upgrade();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user