mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
refactoring of note loading
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user