mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 06:15:48 +01:00
sync are sent upon DB commit
This commit is contained in:
@@ -12,6 +12,8 @@ export class LoadResults {
|
||||
this.noteReorderings = [];
|
||||
|
||||
this.noteRevisions = [];
|
||||
|
||||
this.contentNoteIdToSourceId = [];
|
||||
}
|
||||
|
||||
addNote(noteId, sourceId) {
|
||||
@@ -76,4 +78,16 @@ export class LoadResults {
|
||||
const sourceIds = this.noteIdToSourceId[noteId];
|
||||
return sourceIds && !!sourceIds.find(sId => sId !== sourceId);
|
||||
}
|
||||
|
||||
addNoteContent(noteId, sourceId) {
|
||||
this.contentNoteIdToSourceId.push({noteId, sourceId});
|
||||
}
|
||||
|
||||
isNoteContentReloaded(noteId, sourceId) {
|
||||
if (!noteId) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return this.contentNoteIdToSourceId.find(l => l.noteId === noteId && l.sourceId !== sourceId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user