mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
refac: granular chat controls permissions
This commit is contained in:
parent
708e0ed05e
commit
56af3e7357
1 changed files with 18 additions and 16 deletions
|
|
@ -266,29 +266,31 @@
|
||||||
<Switch bind:state={permissions.chat.controls} />
|
<Switch bind:state={permissions.chat.controls} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class=" flex w-full justify-between my-2 pr-2">
|
{#if permissions.chat.controls}
|
||||||
<div class=" self-center text-xs font-medium">
|
<div class=" flex w-full justify-between my-2 pr-2">
|
||||||
{$i18n.t('Allow Chat Valves')}
|
<div class=" self-center text-xs font-medium">
|
||||||
|
{$i18n.t('Allow Chat Valves')}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<Switch bind:state={permissions.chat.valves} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Switch bind:state={permissions.chat.valves} />
|
<div class=" flex w-full justify-between my-2 pr-2">
|
||||||
</div>
|
<div class=" self-center text-xs font-medium">
|
||||||
|
{$i18n.t('Allow Chat System Prompt')}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class=" flex w-full justify-between my-2 pr-2">
|
<Switch bind:state={permissions.chat.system_prompt} />
|
||||||
<div class=" self-center text-xs font-medium">
|
|
||||||
{$i18n.t('Allow Chat System Prompt')}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Switch bind:state={permissions.chat.system_prompt} />
|
<div class=" flex w-full justify-between my-2 pr-2">
|
||||||
</div>
|
<div class=" self-center text-xs font-medium">
|
||||||
|
{$i18n.t('Allow Chat Params')}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class=" flex w-full justify-between my-2 pr-2">
|
<Switch bind:state={permissions.chat.params} />
|
||||||
<div class=" self-center text-xs font-medium">
|
|
||||||
{$i18n.t('Allow Chat Params')}
|
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
<Switch bind:state={permissions.chat.params} />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class=" flex w-full justify-between my-2 pr-2">
|
<div class=" flex w-full justify-between my-2 pr-2">
|
||||||
<div class=" self-center text-xs font-medium">
|
<div class=" self-center text-xs font-medium">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue