mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 14:25:51 +01:00
refactored access to options on frontend
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user