This commit is contained in:
Timothy Jaeryang Baek committed 2026-10-09 17:19:10 +04:00
1 parent db1ca1afab
commit b3ce7de8d3
12 files changed
+199 -7

No files matched your search

@@ -1,6 +1,6 @@
<script lang="ts">
import { getContext } from 'svelte';
const i18n = getContext('i18n');
const i18n = getContext<typeof import('$lib/i18n').default>('i18n');
import Modal from '$lib/components/common/Modal.svelte';
import AccessControl from './AccessControl.svelte';
@@ -14,6 +14,7 @@
};
export let show = false;
export let disabled = false;
export let accessGrants: AccessGrant[] = [];
export let accessControl: any = undefined;
export let accessRoles = ['read'];
@@ -24,7 +25,7 @@
export let shareUsers = true;
export let allowGroups = true;
export let onChange = () => {};
export let onChange: (grants: AccessGrant[]) => void | Promise<void> = () => {};
</script>
<Modal size="sm" bind:show>
@@ -43,7 +44,7 @@
</button>
</div>
<div class="w-full px-4 pb-3 dark:text-white">
<div class="w-full px-4 pb-3 dark:text-white" inert={disabled} aria-busy={disabled}>
<AccessControl
bind:accessGrants
bind:accessControl