mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 22:05:19 +00:00
refac: hide docs, releases for users
This commit is contained in:
parent
55ad48d1c3
commit
0acd78049d
1 changed files with 27 additions and 25 deletions
|
|
@ -144,32 +144,34 @@
|
||||||
|
|
||||||
<!-- {$i18n.t('Help')} -->
|
<!-- {$i18n.t('Help')} -->
|
||||||
|
|
||||||
<DropdownMenu.Item
|
{#if $user?.role === 'admin'}
|
||||||
as="a"
|
<DropdownMenu.Item
|
||||||
class="flex gap-2 items-center py-1.5 px-3 text-sm select-none w-full cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md transition"
|
as="a"
|
||||||
id="chat-share-button"
|
class="flex gap-2 items-center py-1.5 px-3 text-sm select-none w-full cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md transition"
|
||||||
on:click={() => {
|
id="chat-share-button"
|
||||||
show = false;
|
on:click={() => {
|
||||||
}}
|
show = false;
|
||||||
href="https://docs.openwebui.com"
|
}}
|
||||||
>
|
href="https://docs.openwebui.com"
|
||||||
<QuestionMarkCircle className="size-5" />
|
>
|
||||||
<div class="flex items-center">{$i18n.t('Documentation')}</div>
|
<QuestionMarkCircle className="size-5" />
|
||||||
</DropdownMenu.Item>
|
<div class="flex items-center">{$i18n.t('Documentation')}</div>
|
||||||
|
</DropdownMenu.Item>
|
||||||
|
|
||||||
<!-- Releases -->
|
<!-- Releases -->
|
||||||
<DropdownMenu.Item
|
<DropdownMenu.Item
|
||||||
as="a"
|
as="a"
|
||||||
class="flex gap-2 items-center py-1.5 px-3 text-sm select-none w-full cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md transition"
|
class="flex gap-2 items-center py-1.5 px-3 text-sm select-none w-full cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md transition"
|
||||||
id="chat-share-button"
|
id="chat-share-button"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
show = false;
|
show = false;
|
||||||
}}
|
}}
|
||||||
href="https://github.com/open-webui/"
|
href="https://github.com/open-webui/"
|
||||||
>
|
>
|
||||||
<Map className="size-5" />
|
<Map className="size-5" />
|
||||||
<div class="flex items-center">{$i18n.t('Releases')}</div>
|
<div class="flex items-center">{$i18n.t('Releases')}</div>
|
||||||
</DropdownMenu.Item>
|
</DropdownMenu.Item>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<DropdownMenu.Item
|
<DropdownMenu.Item
|
||||||
class="flex gap-2 items-center py-1.5 px-3 text-sm select-none w-full cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md transition cursor-pointer"
|
class="flex gap-2 items-center py-1.5 px-3 text-sm select-none w-full cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md transition cursor-pointer"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue