refactored access to options on frontend

This commit is contained in:
zadam
2020-02-05 22:08:45 +01:00
parent 786bbbc160
commit 42017fde5f
32 changed files with 267 additions and 311 deletions

View File

@@ -14,6 +14,8 @@ export class LoadResults {
this.noteRevisions = [];
this.contentNoteIdToSourceId = [];
this.options = [];
}
addNote(noteId, sourceId) {
@@ -90,4 +92,12 @@ export class LoadResults {
return this.contentNoteIdToSourceId.find(l => l.noteId === noteId && l.sourceId !== sourceId);
}
addOption(name) {
this.options.push(name);
}
isOptionReloaded(name) {
this.options.includes(name);
}
}