similar notes is getting updated automatically after the title change

This commit is contained in:
zadam
2019-09-03 21:31:39 +02:00
parent 9404e27cba
commit 2e05cb1764
10 changed files with 53 additions and 30 deletions

View File

@@ -267,6 +267,8 @@ class TabContext {
// run async
bundleService.executeRelationBundles(this.note, 'runOnNoteChange', this);
this.eventReceived('noteSaved');
}
async saveNoteIfChanged() {
@@ -366,11 +368,11 @@ class TabContext {
}
}
syncDataReceived(syncData) {
this.attributes.syncDataReceived(syncData);
eventReceived(name, data) {
this.attributes.eventReceived(name, data);
if (this.sidebar) {
this.sidebar.syncDataReceived(syncData);
this.sidebar.eventReceived(name, data);
}
}