mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
export single note as markdown, #166
This commit is contained in:
@@ -482,6 +482,13 @@ class Note extends Entity {
|
||||
return await repository.getEntities("SELECT * FROM branches WHERE isDeleted = 0 AND noteId = ?", [this.noteId]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {boolean} - true if note has children
|
||||
*/
|
||||
async hasChildren() {
|
||||
return (await this.getChildNotes()).length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {Promise<Note[]>} child notes of this note
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user