mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
Merge pull request #14837 from itk-dev/feature/menu-link-anchor
Feat: menu link anchor
This commit is contained in:
commit
3e81705dd3
@ -873,11 +873,13 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if $user?.role === 'admin'}
|
{#if $user?.role === 'admin'}
|
||||||
<button
|
<a
|
||||||
|
href="/admin/settings"
|
||||||
class="px-0.5 py-1 min-w-fit rounded-lg flex-1 md:flex-none md:mt-auto flex text-left transition {$settings?.highContrastMode
|
class="px-0.5 py-1 min-w-fit rounded-lg flex-1 md:flex-none md:mt-auto flex text-left transition {$settings?.highContrastMode
|
||||||
? 'hover:bg-gray-200 dark:hover:bg-gray-800'
|
? 'hover:bg-gray-200 dark:hover:bg-gray-800'
|
||||||
: 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'}"
|
: 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'}"
|
||||||
on:click={async () => {
|
on:click={async (e) => {
|
||||||
|
e.preventDefault();
|
||||||
await goto('/admin/settings');
|
await goto('/admin/settings');
|
||||||
show = false;
|
show = false;
|
||||||
}}
|
}}
|
||||||
@ -887,6 +889,7 @@
|
|||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="currentColor"
|
fill="currentColor"
|
||||||
|
aria-hidden="true"
|
||||||
class="size-4"
|
class="size-4"
|
||||||
>
|
>
|
||||||
<path
|
<path
|
||||||
@ -897,7 +900,7 @@
|
|||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
<div class=" self-center">{$i18n.t('Admin Settings')}</div>
|
<div class=" self-center">{$i18n.t('Admin Settings')}</div>
|
||||||
</button>
|
</a>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-1 md:min-h-[32rem] max-h-[32rem]">
|
<div class="flex-1 md:min-h-[32rem] max-h-[32rem]">
|
||||||
|
Loading…
Reference in New Issue
Block a user