Skip to content

Commit 7070a0a

Browse files
authored
Merge pull request #2850 from appwrite/fix-project-limit-alert-not-hidden-for-special-programs
fix: make project limit alert program-aware
2 parents 3daf2d4 + 928a31b commit 7070a0a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • src/routes/(console)/organization-[organization]

src/routes/(console)/organization-[organization]/+page.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,11 @@
219219
</Alert.Inline>
220220
{/if}
221221

222-
{#if isCloud && data.currentPlan?.projects !== 0 && projectsToArchive.length === 0 && !freePlanAlertDismissed}
222+
{#if isCloud && !data.program && data.currentPlan?.projects !== 0 && projectsToArchive.length === 0 && !freePlanAlertDismissed}
223223
<Alert.Inline dismissible on:dismiss={dismissFreePlanAlert}>
224224
<Typography.Text
225-
>Your Free plan includes up to 2 projects and limited resources. Upgrade to unlock
226-
more capacity and features.</Typography.Text>
225+
>Your Free plan includes up to {data.currentPlan?.projects} projects and limited resources.
226+
Upgrade to unlock more capacity and features.</Typography.Text>
227227
<svelte:fragment slot="actions">
228228
<Button
229229
compact

0 commit comments

Comments
 (0)