mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 20:36:13 +01:00
WIP per-tab hoisting
This commit is contained in:
@@ -193,8 +193,8 @@ export default class TabManager extends Component {
|
||||
return tabContext;
|
||||
}
|
||||
|
||||
async openTabWithNote(notePath, activate, tabId = null, hoistedNoteId = 'root') {
|
||||
const tabContext = await this.openEmptyTab(tabId);
|
||||
async openTabWithNote(notePath, activate, tabId, hoistedNoteId) {
|
||||
const tabContext = await this.openEmptyTab(tabId, hoistedNoteId);
|
||||
|
||||
if (notePath) {
|
||||
await tabContext.setNote(notePath, !activate); // if activate is false then send normal noteSwitched event
|
||||
|
||||
Reference in New Issue
Block a user