refac: access controls
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user