Merge pull request #2850 from appwrite/fix-project-limit-alert-not-hidden-for-special-programs

fix: make project limit alert program-aware
This commit is contained in:
Harsh Mahajan
2026-02-11 15:06:39 +05:30
committed by GitHub
@@ -219,11 +219,11 @@
</Alert.Inline>
{/if}
{#if isCloud && data.currentPlan?.projects !== 0 && projectsToArchive.length === 0 && !freePlanAlertDismissed}
{#if isCloud && !data.program && data.currentPlan?.projects !== 0 && projectsToArchive.length === 0 && !freePlanAlertDismissed}
<Alert.Inline dismissible on:dismiss={dismissFreePlanAlert}>
<Typography.Text
>Your Free plan includes up to 2 projects and limited resources. Upgrade to unlock
more capacity and features.</Typography.Text>
>Your Free plan includes up to {data.currentPlan?.projects} projects and limited resources.
Upgrade to unlock more capacity and features.</Typography.Text>
<svelte:fragment slot="actions">
<Button
compact