Skip to content

Commit a872327

Browse files
authored
Merge pull request #1781 from appwrite/fix-message-on-members
Fix: paid plans showing `PHP_INT_MAX` for limits
2 parents 3b93eeb + e01e8e4 commit a872327

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/lib/layout/containerHeader.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
export let showAlert = true;
3131
export let level: 'organization' | 'project' = 'project';
3232
export let customPillText: string | undefined = undefined;
33+
export let showPillMessage: boolean = true;
3334
3435
export let buttonText: string = null;
3536
export let buttonMethod: () => void = null;
@@ -129,7 +130,7 @@
129130
<header class:u-flex={isFlex} class="u-gap-12 common-section u-main-space-between u-flex-wrap">
130131
<div class="u-flex u-cross-child-center u-cross-center u-gap-16 u-flex-wrap">
131132
<Heading tag={titleTag} size={titleSize}>{title}</Heading>
132-
{#if isCloud && isLimited}
133+
{#if isCloud && isLimited && showPillMessage}
133134
<DropList bind:show={showDropdown} width="16">
134135
{#if hasProjectLimitation}
135136
<Pill button on:click={() => (showDropdown = !showDropdown)}>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
buttonText={$isOwner ? 'Invite' : ''}
7575
buttonMethod={() => newMemberModal.set(true)}
7676
customPillText="Members limited"
77+
showPillMessage={!$currentPlan?.addons?.seats?.supported}
7778
buttonDisabled={!$currentPlan?.addons?.seats?.supported} />
7879

7980
<TableScroll>

0 commit comments

Comments
 (0)