mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-26 07:11:00 -05:00
refac
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user