From 558e4987ecb600221d88a444f74c9c29fedb4232 Mon Sep 17 00:00:00 2001 From: Darshan Date: Wed, 28 Jan 2026 17:43:18 +0530 Subject: [PATCH] fix: stores issue, again in some places. --- .../overview/platforms/action.svelte | 8 ++-- .../storage/+page.svelte | 39 +++++++++++++------ 2 files changed, 33 insertions(+), 14 deletions(-) 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}