mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
ETAPI delete/patch, refactoring
This commit is contained in:
@@ -218,6 +218,13 @@ class NoteContext extends Component {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
hasNoteList() {
|
||||
return this.note.hasChildren()
|
||||
&& ['book', 'text', 'code'].includes(this.note.type)
|
||||
&& this.note.mime !== 'text/x-sqlite;schema=trilium'
|
||||
&& !this.note.hasLabel('hideChildrenOverview');
|
||||
}
|
||||
}
|
||||
|
||||
export default NoteContext;
|
||||
|
||||
Reference in New Issue
Block a user