File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
src/routes/(console)/account/organizations Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 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
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 }
You can’t perform that action at this time.
0 commit comments