diff --git a/src/routes/(console)/project-[region]-[project]/overview/platforms/action.svelte b/src/routes/(console)/project-[region]-[project]/overview/platforms/action.svelte index b20a72ab1..233742854 100644 --- a/src/routes/(console)/project-[region]-[project]/overview/platforms/action.svelte +++ b/src/routes/(console)/project-[region]-[project]/overview/platforms/action.svelte @@ -11,13 +11,15 @@ IconPlus, IconReact } from '@appwrite.io/pink-icons-svelte'; - import { isCloud } from '$lib/system'; - import { currentPlan } from '$lib/stores/organization'; + import { isServiceLimited } from '$lib/stores/billing'; + import { organization } from '$lib/stores/organization'; import { page } from '$app/state'; + + $: isLimited = isServiceLimited('platforms', $organization, page.data.platforms.total); {#if $canWritePlatforms} - {#if isCloud && $currentPlan?.platforms >= page.data.platforms.total} + {#if isLimited}
+ +
+ +
+ + You have reached the maximum number of buckets for your plan. + +
{/if}