mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
refactoring of note detail API
This commit is contained in:
@@ -104,7 +104,9 @@ class TreeContextMenu {
|
||||
const notePath = await treeUtils.getNotePath(this.node);
|
||||
|
||||
if (cmd === 'openInTab') {
|
||||
noteDetailService.openInTab(notePath, false);
|
||||
const tabContext = appContext.openEmptyTab();
|
||||
appContext.activateTab(tabContext.tabId);
|
||||
tabContext.setNote(notePath);
|
||||
}
|
||||
else if (cmd.startsWith("insertNoteAfter")) {
|
||||
const parentNoteId = this.node.data.parentNoteId;
|
||||
|
||||
Reference in New Issue
Block a user