mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 05:46:10 +01:00
some refactoring etc.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import optionsInit from './options_init.js';
|
||||
import server from "./server.js";
|
||||
import tree from "./tree.js";
|
||||
import noteDetailService from "./note_detail.js";
|
||||
|
||||
let hoistedNoteId;
|
||||
|
||||
@@ -17,6 +18,10 @@ async function getHoistedNoteId() {
|
||||
async function setHoistedNoteId(noteId) {
|
||||
hoistedNoteId = noteId;
|
||||
|
||||
if (noteId !== 'root') {
|
||||
await noteDetailService.filterTabs(noteId);
|
||||
}
|
||||
|
||||
await server.put('options/hoistedNoteId/' + noteId);
|
||||
|
||||
await tree.reload();
|
||||
|
||||
Reference in New Issue
Block a user