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

@@ -45,9 +45,11 @@ class NoteInfoWidget extends StandardWidget {
$mime.text(note.mime);
}
syncDataReceived(syncData) {
if (syncData.find(sd => sd.entityName === 'notes' && sd.entityId === this.ctx.note.noteId)) {
this.doRenderBody();
eventReceived(name, data) {
if (name === 'syncData') {
if (data.find(sd => sd.entityName === 'notes' && sd.entityId === this.ctx.note.noteId)) {
this.doRenderBody();
}
}
}
}