refactoring of note loading

This commit is contained in:
zadam
2019-09-04 22:13:22 +02:00
parent fdc86bab50
commit a17b8a053e
5 changed files with 268 additions and 240 deletions

View File

@@ -174,14 +174,13 @@ async function showTab(tabId) {
/**
* @param {TabContext} ctx
* @param {NoteFull} note
* @param {string} notePath
*/
async function loadNoteDetailToContext(ctx, note, notePath) {
await ctx.setNote(note, notePath);
openTabsChanged();
treeService.setBranchBackgroundBasedOnProtectedStatus(note.noteId);
fireDetailLoaded();
}