refac: access control

This commit is contained in:
Timothy Jaeryang Baek
2024-11-16 20:47:45 -08:00
parent b41e456c4f
commit 41bad9abcb
13 changed files with 209 additions and 73 deletions
@@ -9,6 +9,8 @@
import UserCircleSolid from '$lib/components/icons/UserCircleSolid.svelte';
import XMark from '$lib/components/icons/XMark.svelte';
export let onChange: Function = () => {};
export let accessControl = null;
let selectedGroupId = '';
@@ -17,6 +19,8 @@
onMount(async () => {
groups = await getGroups(localStorage.token);
});
$: onChange(accessControl);
</script>
<div class=" rounded-lg flex flex-col gap-2">