Skip to content

Commit b67739b

Browse files
Merge pull request #2766 from appwrite/fix-hide-create-org
2 parents 812607b + cdf0e81 commit b67739b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/routes/(console)/account/organizations/+page.svelte

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import { Icon, Tooltip, Typography } from '@appwrite.io/pink-svelte';
2424
import { IconPlus } from '@appwrite.io/pink-icons-svelte';
2525
import { isFreePlan } from '$lib/helpers/billing';
26+
import { resolvedProfile } from '$lib/profiles/index.svelte';
2627
2728
const {
2829
data
@@ -97,11 +98,12 @@
9798
<Container>
9899
<div class="u-flex u-gap-12 common-section u-main-space-between">
99100
<Typography.Title>Organizations</Typography.Title>
100-
101-
<Button on:click={createOrg} event="create_organization">
102-
<Icon icon={IconPlus} slot="start" size="s" />
103-
Create organization
104-
</Button>
101+
{#if resolvedProfile.showCreateOrganization}
102+
<Button on:click={createOrg} event="create_organization">
103+
<Icon icon={IconPlus} slot="start" size="s" />
104+
Create organization
105+
</Button>
106+
{/if}
105107
</div>
106108

107109
{#if data.organizations.teams.length}

0 commit comments

Comments
 (0)