From 6caf83896481266233a11770f3c0d5eebab02a7f Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 13 Nov 2024 02:00:00 -0800 Subject: [PATCH] feat: user groups frontend --- src/lib/components/admin/Users/Groups.svelte | 123 ++++++++++++++++++ .../workspace/Knowledge/Collection.svelte | 2 +- 2 files changed, 124 insertions(+), 1 deletion(-) diff --git a/src/lib/components/admin/Users/Groups.svelte b/src/lib/components/admin/Users/Groups.svelte index e69de29bb..adfc1066f 100644 --- a/src/lib/components/admin/Users/Groups.svelte +++ b/src/lib/components/admin/Users/Groups.svelte @@ -0,0 +1,123 @@ + + +{#if loaded} +
+
+ {$i18n.t('Groups')} +
+ + {groups.length} +
+ +
+
+
+
+ + + +
+ +
+ +
+ + + +
+
+
+
+ +
+ {#if filteredGroups.length === 0} +
+
+ {$i18n.t('Organize your users')} +
+ +
+ {$i18n.t('Use groups to group your users and assign permissions.')} +
+ +
+ +
+
+ {:else} +
+ {/if} +
+{/if} diff --git a/src/lib/components/workspace/Knowledge/Collection.svelte b/src/lib/components/workspace/Knowledge/Collection.svelte index 641e5f643..932bcfe19 100644 --- a/src/lib/components/workspace/Knowledge/Collection.svelte +++ b/src/lib/components/workspace/Knowledge/Collection.svelte @@ -596,7 +596,7 @@ }} /> -
+
{#if id && knowledge}