mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
Also update note context in other note context events in note wrapper so it works with tabs
This commit is contained in:
@@ -29,11 +29,15 @@ export default class NoteWrapperWidget extends FlexContainer<BasicWidget> {
|
|||||||
this.refresh();
|
this.refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
noteSwitchedEvent() {
|
noteSwitchedEvent({ noteContext }: EventData<"setNoteContext">) {
|
||||||
|
this.noteContext = noteContext;
|
||||||
|
|
||||||
this.refresh();
|
this.refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
activeContextChangedEvent() {
|
activeContextChangedEvent({ noteContext }: EventData<"setNoteContext">) {
|
||||||
|
this.noteContext = noteContext;
|
||||||
|
|
||||||
this.refresh();
|
this.refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user