created concept of "detail loaded listeners" which allow scripts to execute some action after the note detail has been loaded

This commit is contained in:
azivner
2019-01-01 19:32:34 +01:00
parent 8785dae753
commit 3ab657fe46
3 changed files with 39 additions and 23 deletions

View File

@@ -43,7 +43,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null) {
this.activateNewNote = async notePath => {
await treeService.reload();
await treeService.activateNote(notePath, true);
await treeService.activateNote(notePath, noteDetailService.focusOnTitle);
};
/**