mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
update: show projects and members.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
import { addNotification } from '$lib/stores/notifications';
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
import { members, organization } from '$lib/stores/organization';
|
||||
import { projects } from '../store';
|
||||
import { invalidate } from '$app/navigation';
|
||||
import { Dependencies } from '$lib/constants';
|
||||
import { onMount } from 'svelte';
|
||||
@@ -40,6 +41,8 @@
|
||||
}
|
||||
|
||||
$: avatars = $members.memberships.map((team) => team.userName);
|
||||
$: orgProjects = `${$projects.total} ${$projects.total === 1 ? 'project' : 'projects'}`;
|
||||
$: orgMembers = `${$organization.total} ${$organization.total === 1 ? 'member' : 'members'}`;
|
||||
</script>
|
||||
|
||||
<Container>
|
||||
@@ -85,7 +88,7 @@
|
||||
<svelte:fragment slot="title">
|
||||
<h6 class="u-bold u-trim-1" data-private>{$organization.name}</h6>
|
||||
</svelte:fragment>
|
||||
<p>{$organization.total} members</p>
|
||||
<p>{orgMembers}, {orgProjects}</p>
|
||||
</BoxAvatar>
|
||||
</svelte:fragment>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user