forked from open-webui/open-webui
feat: disable admin chatlist by default
This commit is contained in:
parent
dc412d21f7
commit
77cc3b5470
1 changed files with 13 additions and 11 deletions
|
@ -267,17 +267,19 @@
|
||||||
|
|
||||||
<td class="px-3 py-2 text-right">
|
<td class="px-3 py-2 text-right">
|
||||||
<div class="flex justify-end w-full">
|
<div class="flex justify-end w-full">
|
||||||
<Tooltip content="Chats">
|
{#if user.role !== 'admin'}
|
||||||
<button
|
<Tooltip content="Chats">
|
||||||
class="self-center w-fit text-sm px-2 py-2 hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
|
<button
|
||||||
on:click={async () => {
|
class="self-center w-fit text-sm px-2 py-2 hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
|
||||||
showUserChatsModal = !showUserChatsModal;
|
on:click={async () => {
|
||||||
selectedUser = user;
|
showUserChatsModal = !showUserChatsModal;
|
||||||
}}
|
selectedUser = user;
|
||||||
>
|
}}
|
||||||
<ChatBubbles />
|
>
|
||||||
</button>
|
<ChatBubbles />
|
||||||
</Tooltip>
|
</button>
|
||||||
|
</Tooltip>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<Tooltip content={$i18n.t('Edit User')}>
|
<Tooltip content={$i18n.t('Edit User')}>
|
||||||
<button
|
<button
|
||||||
|
|
Loading…
Reference in a new issue