You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Desktop: Add a button to collapse or expand all folders (#11905)
This commit is contained in:
@@ -449,6 +449,11 @@ function stateHasEncryptedItems(state: State) {
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
||||
function folderSetCollapsed(draft: Draft<State>, action: any) {
|
||||
if (action.ids) {
|
||||
draft.collapsedFolderIds = action.ids;
|
||||
return;
|
||||
}
|
||||
|
||||
const collapsedFolderIds = draft.collapsedFolderIds.slice();
|
||||
const idx = collapsedFolderIds.indexOf(action.id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user