mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
added note hoisting option to the note launcher
This commit is contained in:
@@ -34,7 +34,7 @@ export default class SplitNoteContainer extends FlexContainer {
|
||||
this.child(widget);
|
||||
}
|
||||
|
||||
async openNewNoteSplitEvent({ntxId, notePath}) {
|
||||
async openNewNoteSplitEvent({ntxId, notePath, hoistedNoteId}) {
|
||||
const mainNtxId = appContext.tabManager.getActiveMainContext().ntxId;
|
||||
|
||||
if (!ntxId) {
|
||||
@@ -43,7 +43,7 @@ export default class SplitNoteContainer extends FlexContainer {
|
||||
ntxId = mainNtxId;
|
||||
}
|
||||
|
||||
const hoistedNoteId = appContext.tabManager.getActiveContext().hoistedNoteId;
|
||||
hoistedNoteId = hoistedNoteId || appContext.tabManager.getActiveContext().hoistedNoteId;
|
||||
|
||||
const noteContext = await appContext.tabManager.openEmptyTab(null, hoistedNoteId, mainNtxId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user