refac: access controls

This commit is contained in:
Timothy Jaeryang Baek
2025-01-20 23:20:47 -08:00
parent aa442f694b
commit 45f4bc18f8
8 changed files with 59 additions and 20 deletions
@@ -7,6 +7,7 @@
export let show = false;
export let accessControl = null;
export let accessRoles = ['read'];
export let onChange = () => {};
</script>
@@ -37,7 +38,7 @@
</div>
<div class="w-full px-5 pb-4 dark:text-white">
<AccessControl bind:accessControl {onChange} />
<AccessControl bind:accessControl {onChange} {accessRoles} />
</div>
</div>
</Modal>