feat(tree): allow hiding child notes via attribute

This commit is contained in:
Elian Doran 2026-01-09 16:32:55 +02:00
parent ed972d2601
commit 4f6c10d995
No known key found for this signature in database

View File

@ -803,6 +803,10 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
childBranches = childBranches.slice(0, MAX_SEARCH_RESULTS_IN_TREE);
}
if (parentNote.hasLabel("subtreeHidden")) {
childBranches = [];
}
for (const branch of childBranches) {
if (hideArchivedNotes) {
const note = branch.getNoteFromCache();