Merge pull request #1781 from appwrite/fix-message-on-members

Fix: paid plans showing `PHP_INT_MAX` for limits
This commit is contained in:
Darshan
2025-04-06 13:34:58 +05:30
committed by GitHub
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -30,6 +30,7 @@
export let showAlert = true;
export let level: 'organization' | 'project' = 'project';
export let customPillText: string | undefined = undefined;
export let showPillMessage: boolean = true;
export let buttonText: string = null;
export let buttonMethod: () => void = null;
@@ -129,7 +130,7 @@
<header class:u-flex={isFlex} class="u-gap-12 common-section u-main-space-between u-flex-wrap">
<div class="u-flex u-cross-child-center u-cross-center u-gap-16 u-flex-wrap">
<Heading tag={titleTag} size={titleSize}>{title}</Heading>
{#if isCloud && isLimited}
{#if isCloud && isLimited && showPillMessage}
<DropList bind:show={showDropdown} width="16">
{#if hasProjectLimitation}
<Pill button on:click={() => (showDropdown = !showDropdown)}>
@@ -74,6 +74,7 @@
buttonText={$isOwner ? 'Invite' : ''}
buttonMethod={() => newMemberModal.set(true)}
customPillText="Members limited"
showPillMessage={!$currentPlan?.addons?.seats?.supported}
buttonDisabled={!$currentPlan?.addons?.seats?.supported} />
<TableScroll>