diff --git a/src/routes/console/account/organizations.svelte b/src/routes/console/account/organizations.svelte index e69de29bb..c862481f1 100644 --- a/src/routes/console/account/organizations.svelte +++ b/src/routes/console/account/organizations.svelte @@ -0,0 +1,110 @@ + + + + + Organizations + + { + addOrganization = true; + }}> + + Create organization + + + + {#if $organizationList?.teams?.length} + 3 ? '22rem' : '25rem' + };`}> + {#each $organizationList.teams as organization, index} + {@const avatarList = getMemberships(organization.$id)} + {#if index >= offset && index < limit + offset} + + {organization?.total ? organization?.total : 'No'} projects + + {organization.name} + + {#await avatarList} + + {:then avatars} + + {/await} + + {/if} + {/each} + {#if $organizationList?.total < limit + offset && ($organizationList?.total % 2 !== 0 || $organizationList?.total % 4 === 0)} + (addOrganization = true)}> + + + + + + + Create a new organization + + + {/if} + + + + Total results: {$organizationList?.total} + + + {:else} + + + + + (addOrganization = true)}> + + + + + Create a new organization + + + + + + Total results: {$organizationList?.total} + + + {/if} + + +
Create a new organization
Total results: {$organizationList?.total}