mirror of
https://github.com/zadam/trilium.git
synced 2026-02-26 16:43:36 +01:00
feat(tree): hide arrow if children are hidden
This commit is contained in:
parent
4f6c10d995
commit
afefbe154b
@ -616,7 +616,9 @@ export default class FNote {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isFolder() {
|
isFolder() {
|
||||||
return this.type === "search" || this.getFilteredChildBranches().length > 0;
|
if (this.hasLabel("subtreeHidden")) return false;
|
||||||
|
if (this.type === "search") return true;
|
||||||
|
return this.getFilteredChildBranches().length > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
getFilteredChildBranches() {
|
getFilteredChildBranches() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user