mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
refac
This commit is contained in:
parent
e9c2d9d035
commit
e2b2e8b245
1 changed files with 4 additions and 2 deletions
|
|
@ -349,7 +349,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
showSidebar.set(!$mobile ? localStorage.sidebar === 'true' : false);
|
showSidebar.set(!$mobile ? localStorage.sidebar === 'true' : false);
|
||||||
showSidebar.subscribe((value) => {
|
showSidebar.subscribe(async (value) => {
|
||||||
localStorage.sidebar = value;
|
localStorage.sidebar = value;
|
||||||
|
|
||||||
// nav element is not available on the first render
|
// nav element is not available on the first render
|
||||||
|
|
@ -509,7 +509,9 @@
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
class="flex flex-col flex-1 cursor-[e-resize]"
|
class="flex flex-col flex-1 cursor-[e-resize]"
|
||||||
on:click={() => {
|
on:click={async () => {
|
||||||
|
await initChannels();
|
||||||
|
await initChatList();
|
||||||
showSidebar.set(!$showSidebar);
|
showSidebar.set(!$showSidebar);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue