mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 09:15:50 +01:00
display unhoist button on the left of the note title so that it's always visible, #1223
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import options from './options.js';
|
||||
import appContext from "./app_context.js";
|
||||
import treeService from "./tree.js";
|
||||
import treeCache from "./tree_cache.js";
|
||||
|
||||
function getHoistedNoteId() {
|
||||
return options.get('hoistedNoteId');
|
||||
@@ -9,6 +10,8 @@ function getHoistedNoteId() {
|
||||
async function setHoistedNoteId(noteId) {
|
||||
await options.save('hoistedNoteId', noteId);
|
||||
|
||||
await treeCache.loadInitialTree();
|
||||
|
||||
// FIXME - just use option load event
|
||||
appContext.triggerEvent('hoistedNoteChanged', {noteId});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user