simplification of triggering events from links

This commit is contained in:
zadam
2020-01-21 22:08:41 +01:00
parent 55d1f9e9f0
commit af5c623671
8 changed files with 45 additions and 51 deletions

View File

@@ -251,7 +251,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
if (!node) {
const hoistedNoteId = await hoistedNoteService.getHoistedNoteId();
node = getNodesByNoteId(hoistedNoteId)[0];
node = this.getNodesByNoteId(hoistedNoteId)[0];
}
node.setExpanded(false);
@@ -281,8 +281,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
}
}
// FIXME since this operates on note details tab context it seems it does not really belong here
async scrollToActiveNote() {
async scrollToActiveNoteListener() {
const activeContext = appContext.getActiveTabContext();
if (activeContext && activeContext.notePath) {