mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 17:55:52 +01:00
refactored TabContext => NoteContext
This commit is contained in:
@@ -2,13 +2,13 @@ import appContext from "./app_context.js";
|
||||
import treeService from "./tree.js";
|
||||
|
||||
function getHoistedNoteId() {
|
||||
const activeNoteContext = appContext.tabManager.getActiveNoteContext();
|
||||
const activeNoteContext = appContext.tabManager.getActiveContext();
|
||||
|
||||
return activeNoteContext ? activeNoteContext.hoistedNoteId : 'root';
|
||||
}
|
||||
|
||||
async function unhoist() {
|
||||
const activeNoteContext = appContext.tabManager.getActiveNoteContext();
|
||||
const activeNoteContext = appContext.tabManager.getActiveContext();
|
||||
|
||||
if (activeNoteContext) {
|
||||
await activeNoteContext.unhoist();
|
||||
|
||||
Reference in New Issue
Block a user