Skip to content

Build your personal knowledge base with Trilium Notes

Also update note context in other note context events in note wrapper so it works with tabs

Papierkorb2292623fcce3d10a
diff --git a/apps/client/src/widgets/note_wrapper.ts b/apps/client/src/widgets/note_wrapper.ts
index 13c01418a9..619f8cda42 100644
--- a/apps/client/src/widgets/note_wrapper.ts
+++ b/apps/client/src/widgets/note_wrapper.ts
@@ -29,11 +29,15 @@ export default class NoteWrapperWidget extends FlexContainer<BasicWidget> {
this.refresh();
}
- noteSwitchedEvent() {
+ noteSwitchedEvent({ noteContext }: EventData<"setNoteContext">) {
+ this.noteContext = noteContext;
+
this.refresh();
}
- activeContextChangedEvent() {
+ activeContextChangedEvent({ noteContext }: EventData<"setNoteContext">) {
+ this.noteContext = noteContext;
+
this.refresh();
}