mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
exposing blobs in APIs
This commit is contained in:
@@ -19,18 +19,22 @@ export default class NoteContextAwareWidget extends BasicWidget {
|
||||
return this.noteId === noteId;
|
||||
}
|
||||
|
||||
/** @returns {FNote|undefined} */
|
||||
get note() {
|
||||
return this.noteContext?.note;
|
||||
}
|
||||
|
||||
/** @returns {string|undefined} */
|
||||
get noteId() {
|
||||
return this.note?.noteId;
|
||||
}
|
||||
|
||||
/** @returns {string|undefined} */
|
||||
get notePath() {
|
||||
return this.noteContext?.notePath;
|
||||
}
|
||||
|
||||
/** @returns {string} */
|
||||
get hoistedNoteId() {
|
||||
return this.noteContext?.hoistedNoteId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user