mirror of
https://github.com/open-webui/open-webui
synced 2025-06-23 02:16:52 +00:00
Merge pull request #15049 from silentoplayz/fixopeninnewtab
fix: regression for "open in new tab"
This commit is contained in:
commit
3b70841a7d
@ -107,39 +107,41 @@
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
{#if role === 'admin'}
|
{#if role === 'admin'}
|
||||||
<button
|
<a
|
||||||
class="flex rounded-md py-1.5 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition"
|
href="/playground"
|
||||||
|
class="flex rounded-md py-1.5 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition select-none"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
goto('/playground');
|
|
||||||
show = false;
|
show = false;
|
||||||
|
|
||||||
if ($mobile) {
|
if ($mobile) {
|
||||||
showSidebar.set(false);
|
showSidebar.set(false);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
draggable="false"
|
||||||
>
|
>
|
||||||
<div class=" self-center mr-3">
|
<div class=" self-center mr-3">
|
||||||
<Code className="size-5" strokeWidth="1.5" />
|
<Code className="size-5" strokeWidth="1.5" />
|
||||||
</div>
|
</div>
|
||||||
<div class=" self-center truncate">{$i18n.t('Playground')}</div>
|
<div class=" self-center truncate">{$i18n.t('Playground')}</div>
|
||||||
</button>
|
</a>
|
||||||
|
|
||||||
<button
|
<a
|
||||||
class="flex rounded-md py-1.5 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition"
|
href="/admin"
|
||||||
|
class="flex rounded-md py-1.5 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition select-none"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
goto('/admin');
|
|
||||||
show = false;
|
show = false;
|
||||||
|
|
||||||
if ($mobile) {
|
if ($mobile) {
|
||||||
showSidebar.set(false);
|
showSidebar.set(false);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
draggable="false"
|
||||||
>
|
>
|
||||||
<div class=" self-center mr-3">
|
<div class=" self-center mr-3">
|
||||||
<UserGroup className="w-5 h-5" strokeWidth="1.5" />
|
<UserGroup className="w-5 h-5" strokeWidth="1.5" />
|
||||||
</div>
|
</div>
|
||||||
<div class=" self-center truncate">{$i18n.t('Admin Panel')}</div>
|
<div class=" self-center truncate">{$i18n.t('Admin Panel')}</div>
|
||||||
</button>
|
</a>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if help}
|
{#if help}
|
||||||
|
Loading…
Reference in New Issue
Block a user