mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-07-23 23:35:57 +02:00
Reveal hidden notes list when selecting a sidebar view (#145)
This commit is contained in:
@@ -258,7 +258,14 @@
|
|||||||
|
|
||||||
function handleViewChanged() {
|
function handleViewChanged() {
|
||||||
taskNoteOpened = false;
|
taskNoteOpened = false;
|
||||||
noteList?.refresh();
|
// Picking a notebook/tag/Tasks/etc. in the sidebar is a request to browse that view's
|
||||||
|
// notes - so if the notes list was hidden, bring it back rather than navigating blindly
|
||||||
|
// into a panel the user can't see. revealNoteList() re-mounts the list and refreshes it.
|
||||||
|
if ($notelistCollapsed) {
|
||||||
|
revealNoteList();
|
||||||
|
} else {
|
||||||
|
noteList?.refresh();
|
||||||
|
}
|
||||||
if (isMobile) $mobileView = 'notelist';
|
if (isMobile) $mobileView = 'notelist';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user