From afc61fc69d036140363cfbf78f0b725a23c39f88 Mon Sep 17 00:00:00 2001 From: Gaofeng Date: Mon, 24 Nov 2025 21:49:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=20sidebar=20(=20showSidebar?= =?UTF-8?q?=20=E4=B8=BA=20false=EF=BC=8Csidebar=E6=94=B6=E7=BC=A9)=20?= =?UTF-8?q?=E4=B8=AD=20workspace=20=E9=80=89=E9=A1=B9=20=E5=92=8C=20note?= =?UTF-8?q?=20=E9=80=89=E9=A1=B9=EF=BC=9B=E5=9C=A8=E6=94=B6=E7=BC=A9?= =?UTF-8?q?=E7=9A=84=20sidebar=20=E4=B8=AD=E6=B7=BB=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=88=B0=E8=AE=B0=E5=BF=86=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E6=8C=89=E9=92=AE=EF=BC=9B=E5=88=A0=E9=99=A4=E4=BA=86=E8=AE=B0?= =?UTF-8?q?=E5=BF=86=E7=95=8C=E9=9D=A2=E4=B8=AD=20=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E6=89=80=E6=9C=89=E8=AE=B0=E5=BF=86=E7=9A=84=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/components/layout/Sidebar.svelte | 51 +++++++++++++++++------- 1 file changed, 37 insertions(+), 14 deletions(-) diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index 37b3a707b5..16566b3a6e 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -617,8 +617,8 @@
@@ -650,8 +650,31 @@
- +
+ + { + e.stopImmediatePropagation(); + e.preventDefault(); + + goto('/memories'); + itemClickHandler(); + }} + aria-label={$i18n.t('Memory')} + > +
+ +
+
+
+
+ + - {#if ($config?.features?.enable_notes ?? false) && ($user?.role === 'admin' || ($user?.permissions?.features?.notes ?? true))} + - {#if $user?.role === 'admin' || $user?.permissions?.workspace?.models || $user?.permissions?.workspace?.knowledge || $user?.permissions?.workspace?.prompts || $user?.permissions?.workspace?.tools} + @@ -862,7 +885,7 @@ -
+