diff --git a/src/lib/components/icons/Code.svelte b/src/lib/components/icons/Code.svelte
new file mode 100644
index 000000000..824df1b40
--- /dev/null
+++ b/src/lib/components/icons/Code.svelte
@@ -0,0 +1,19 @@
+
+
+
diff --git a/src/lib/components/icons/Settings.svelte b/src/lib/components/icons/Settings.svelte
new file mode 100644
index 000000000..4e622cda8
--- /dev/null
+++ b/src/lib/components/icons/Settings.svelte
@@ -0,0 +1,20 @@
+
+
+
diff --git a/src/lib/components/icons/SignOut.svelte b/src/lib/components/icons/SignOut.svelte
new file mode 100644
index 000000000..0307cddd3
--- /dev/null
+++ b/src/lib/components/icons/SignOut.svelte
@@ -0,0 +1,16 @@
+
+
+
diff --git a/src/lib/components/icons/UserGroup.svelte b/src/lib/components/icons/UserGroup.svelte
new file mode 100644
index 000000000..b3e9d6ff1
--- /dev/null
+++ b/src/lib/components/icons/UserGroup.svelte
@@ -0,0 +1,19 @@
+
+
+
diff --git a/src/lib/components/layout/Navbar/Menu.svelte b/src/lib/components/layout/Navbar/Menu.svelte
index 1118f3e3d..6bab404c5 100644
--- a/src/lib/components/layout/Navbar/Menu.svelte
+++ b/src/lib/components/layout/Navbar/Menu.svelte
@@ -250,7 +250,7 @@
{#if $mobile}
{
await showControls.set(true);
@@ -265,7 +265,7 @@
{#if !$temporaryChatEnabled && ($user?.role === 'admin' || ($user.permissions?.chat?.share ?? true))}
{
shareHandler();
@@ -288,7 +288,7 @@
{/if}
{
await showControls.set(true);
@@ -301,7 +301,7 @@
{
await showControls.set(true);
@@ -315,7 +315,7 @@
{
const res = await copyToClipboard(await getChatAsText()).catch((e) => {
diff --git a/src/lib/components/layout/Sidebar/UserMenu.svelte b/src/lib/components/layout/Sidebar/UserMenu.svelte
index e816b43e5..70e60f038 100644
--- a/src/lib/components/layout/Sidebar/UserMenu.svelte
+++ b/src/lib/components/layout/Sidebar/UserMenu.svelte
@@ -4,15 +4,19 @@
import { flyAndScale } from '$lib/utils/transitions';
import { goto } from '$app/navigation';
- import ArchiveBox from '$lib/components/icons/ArchiveBox.svelte';
import { showSettings, activeUserIds, USAGE_POOL, mobile, showSidebar, user } from '$lib/stores';
import { fade, slide } from 'svelte/transition';
import Tooltip from '$lib/components/common/Tooltip.svelte';
import { userSignOut } from '$lib/apis/auths';
+ import ArchiveBox from '$lib/components/icons/ArchiveBox.svelte';
import QuestionMarkCircle from '$lib/components/icons/QuestionMarkCircle.svelte';
import Map from '$lib/components/icons/Map.svelte';
import Keyboard from '$lib/components/icons/Keyboard.svelte';
import ShortcutsModal from '$lib/components/chat/ShortcutsModal.svelte';
+ import Settings from '$lib/components/icons/Settings.svelte';
+ import Code from '$lib/components/icons/Code.svelte';
+ import UserGroup from '$lib/components/icons/UserGroup.svelte';
+ import SignOut from '$lib/components/icons/SignOut.svelte';
const i18n = getContext('i18n');
@@ -58,25 +62,7 @@
}}
>
{$i18n.t('Settings')}
@@ -99,10 +85,10 @@
{#if role === 'admin'}
- {
+ goto('/playground');
show = false;
if ($mobile) {
@@ -111,28 +97,15 @@
}}
>
{$i18n.t('Playground')}
-
+
- {
+ goto('/admin');
show = false;
if ($mobile) {
@@ -141,23 +114,10 @@
}}
>
{$i18n.t('Admin Panel')}
-
+
{/if}
{#if help}
@@ -165,10 +125,11 @@
{
window.open('https://docs.openwebui.com', '_blank');
+ show = false;
}}
>
@@ -177,10 +138,11 @@
{
showShortcuts = !showShortcuts;
@@ -214,23 +176,7 @@
}}
>
{$i18n.t('Sign Out')}