Merge pull request #2766 from appwrite/fix-hide-create-org

This commit is contained in:
Torsten Dittmann
2026-01-06 19:42:42 +04:00
committed by GitHub
@@ -23,6 +23,7 @@
import { Icon, Tooltip, Typography } from '@appwrite.io/pink-svelte';
import { IconPlus } from '@appwrite.io/pink-icons-svelte';
import { isFreePlan } from '$lib/helpers/billing';
import { resolvedProfile } from '$lib/profiles/index.svelte';
const {
data
@@ -97,11 +98,12 @@
<Container>
<div class="u-flex u-gap-12 common-section u-main-space-between">
<Typography.Title>Organizations</Typography.Title>
<Button on:click={createOrg} event="create_organization">
<Icon icon={IconPlus} slot="start" size="s" />
Create organization
</Button>
{#if resolvedProfile.showCreateOrganization}
<Button on:click={createOrg} event="create_organization">
<Icon icon={IconPlus} slot="start" size="s" />
Create organization
</Button>
{/if}
</div>
{#if data.organizations.teams.length}