sync are sent upon DB commit

This commit is contained in:
zadam
2020-01-31 22:32:24 +01:00
parent 05b51c0f68
commit eeedb91ef7
8 changed files with 50 additions and 24 deletions

View File

@@ -4,6 +4,7 @@ import protectedSessionHolder from "../services/protected_session_holder.js";
import SpacedUpdate from "../services/spaced_update.js";
import server from "../services/server.js";
import libraryLoader from "../services/library_loader.js";
import noteDetailService from "../services/note_detail.js";
const TPL = `
<div class="note-detail">
@@ -220,8 +221,12 @@ export default class NoteDetailWidget extends TabAwareWidget {
this.refresh();
}
entitiesReloadedListener({loadResults}) {
if (loadResults.isNoteReloaded(this.noteId, this.componentId)) {
async entitiesReloadedListener({loadResults}) {
if (loadResults.isNoteContentReloaded(this.noteId, this.componentId)) {
this.tabContext.noteFull = await noteDetailService.loadNoteFull(this.noteId);
console.log("Reloaded", this.tabContext.noteFull);
this.refreshWithNote(this.note, this.notePath);
}
}