mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
moved tab related stuff to tab manager from app context
This commit is contained in:
@@ -71,14 +71,14 @@ export default class Entrypoints extends Component {
|
||||
await treeService.expandToNote(note.noteId);
|
||||
|
||||
const tabContext = appContext.openEmptyTab();
|
||||
appContext.activateTab(tabContext.tabId);
|
||||
appContext.tabManager.activateTab(tabContext.tabId);
|
||||
await tabContext.setNote(note.noteId);
|
||||
|
||||
appContext.trigger('focusAndSelectTitle');
|
||||
}
|
||||
|
||||
toggleNoteHoistingListener() {
|
||||
const note = appContext.getActiveTabNote();
|
||||
const note = appContext.tabManager.getActiveTabNote();
|
||||
|
||||
hoistedNoteService.getHoistedNoteId().then(async hoistedNoteId => {
|
||||
if (note.noteId === hoistedNoteId) {
|
||||
|
||||
Reference in New Issue
Block a user