mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
converted relation map buttons to floating pattern
This commit is contained in:
@@ -20,19 +20,23 @@ export default class NoteContextAwareWidget extends BasicWidget {
|
||||
}
|
||||
|
||||
get note() {
|
||||
return this.noteContext && this.noteContext.note;
|
||||
return this.noteContext?.note;
|
||||
}
|
||||
|
||||
get noteId() {
|
||||
return this.note && this.note.noteId;
|
||||
return this.note?.noteId;
|
||||
}
|
||||
|
||||
get notePath() {
|
||||
return this.noteContext && this.noteContext.notePath;
|
||||
return this.noteContext.notePath && this.noteContext;
|
||||
}
|
||||
|
||||
get hoistedNoteId() {
|
||||
return this.noteContext && this.noteContext.hoistedNoteId;
|
||||
return this.noteContext?.hoistedNoteId;
|
||||
}
|
||||
|
||||
get ntxId() {
|
||||
return this.noteContext?.ntxId;
|
||||
}
|
||||
|
||||
isEnabled() {
|
||||
|
||||
Reference in New Issue
Block a user