mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: post release modal
This commit is contained in:
@@ -37,11 +37,11 @@
|
||||
});
|
||||
}
|
||||
|
||||
$: isNewUser = new Date($user.$createdAt) > new Date(2023, 11, 18);
|
||||
//user creation date after the 18th of December 2023
|
||||
$: isNewUser = new Date($user.$createdAt) > new Date(2023, 11, 19);
|
||||
//user creation date after the 19th of December 2023
|
||||
$: event = isNewUser ? 'billing_new_user_modal' : 'billing_release_modal';
|
||||
$: freeOrgs = orgs?.teams.filter((o) => o.billingPlan === 'tier-0');
|
||||
$: options = freeOrgs.map((o) => ({ label: o.name, value: o.$id }));
|
||||
$: freeOrgs = orgs?.teams?.filter((o) => o.billingPlan === 'tier-0');
|
||||
$: options = freeOrgs?.map((o) => ({ label: o.name, value: o.$id }));
|
||||
</script>
|
||||
|
||||
<ModalSideCol bind:show title="Claim your Pro credit today" style="max-width: min(53rem,95%)">
|
||||
@@ -86,7 +86,7 @@
|
||||
}}>Learn more on our pricing page.</Button>
|
||||
</p>
|
||||
|
||||
{#if freeOrgs.length > 1 && options.length}
|
||||
{#if freeOrgs?.length > 1 && options?.length}
|
||||
<FormList class="u-margin-block-start-24">
|
||||
<InputSelect
|
||||
label="Organization to upgrade"
|
||||
|
||||
Reference in New Issue
Block a user