mirror of
https://github.com/open-webui/open-webui
synced 2024-11-07 00:59:52 +00:00
refac: remember sidebar status
This commit is contained in:
parent
ed1a2ab5e8
commit
a860e98ab9
@ -115,7 +115,11 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
showSidebar.set(window.innerWidth > BREAKPOINT);
|
showSidebar.set(!$mobile ? localStorage.sidebar === 'true' : false);
|
||||||
|
showSidebar.subscribe((value) => {
|
||||||
|
localStorage.sidebar = value;
|
||||||
|
});
|
||||||
|
|
||||||
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
|
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
|
||||||
await enablePagination();
|
await enablePagination();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user