mirror of
https://github.com/zadam/trilium.git
synced 2026-01-14 18:44:25 +01:00
feat(tree): hide items dragged into a subtreeHidden
This commit is contained in:
parent
968a17fbfb
commit
0f77caad69
@ -758,6 +758,16 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
||||
return;
|
||||
}
|
||||
|
||||
const parentNote = froca.getNoteFromCache(branch.parentNoteId);
|
||||
if (parentNote?.hasLabel("subtreeHidden")) {
|
||||
const parentNode = node.getParent();
|
||||
if (parentNode) {
|
||||
parentNode.setActive(true);
|
||||
}
|
||||
node.remove();
|
||||
return;
|
||||
}
|
||||
|
||||
const title = `${branch.prefix ? `${branch.prefix} - ` : ""}${note.title}`;
|
||||
|
||||
node.data.isProtected = note.isProtected;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user