mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
widgets can now listen to sync data changes
This commit is contained in:
@@ -244,7 +244,10 @@ class TabContext {
|
||||
|
||||
treeService.setNoteTitle(this.note.noteId, this.note.title);
|
||||
|
||||
await server.put('notes/' + this.note.noteId, this.note.dto);
|
||||
const resp = await server.put('notes/' + this.note.noteId, this.note.dto);
|
||||
|
||||
this.note.dateModified = resp.dateModified;
|
||||
this.note.utcDateModified = resp.utcDateModified;
|
||||
|
||||
if (this.note.isProtected) {
|
||||
protectedSessionHolder.touchProtectedSession();
|
||||
@@ -352,6 +355,12 @@ class TabContext {
|
||||
this.$tabContent.find('.aa-input').autocomplete('close');
|
||||
}
|
||||
}
|
||||
|
||||
syncDataReceived(syncData) {
|
||||
if (this.sidebar) {
|
||||
this.sidebar.syncDataReceived(syncData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default TabContext;
|
||||
Reference in New Issue
Block a user