mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 05:24:02 +00:00
Set property "admin" of AdvancedParams in Controls
This commit is contained in:
parent
a75a9c953a
commit
b0c2e607b8
@ -9,6 +9,8 @@
|
|||||||
import FileItem from '$lib/components/common/FileItem.svelte';
|
import FileItem from '$lib/components/common/FileItem.svelte';
|
||||||
import Collapsible from '$lib/components/common/Collapsible.svelte';
|
import Collapsible from '$lib/components/common/Collapsible.svelte';
|
||||||
|
|
||||||
|
import { user } from '$lib/stores';
|
||||||
|
|
||||||
export let models = [];
|
export let models = [];
|
||||||
|
|
||||||
export let chatFiles = [];
|
export let chatFiles = [];
|
||||||
@ -78,7 +80,7 @@
|
|||||||
<Collapsible title={$i18n.t('Advanced Params')} open={true}>
|
<Collapsible title={$i18n.t('Advanced Params')} open={true}>
|
||||||
<div class="text-sm mt-1.5" slot="content">
|
<div class="text-sm mt-1.5" slot="content">
|
||||||
<div>
|
<div>
|
||||||
<AdvancedParams bind:params />
|
<AdvancedParams admin={$user?.role === 'admin'} bind:params />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Collapsible>
|
</Collapsible>
|
||||||
|
Loading…
Reference in New Issue
Block a user