mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
treecache now manages reloading when starting protected session
This commit is contained in:
@@ -37,6 +37,7 @@ async function setNodeTitleWithPrefix(node) {
|
||||
node.setTitle(utils.escapeHtml(title));
|
||||
}
|
||||
|
||||
// FIXME: unused?
|
||||
/** @return {FancytreeNode} */
|
||||
async function activateNote(notePath, noteLoadedListener) {
|
||||
utils.assertArguments(notePath);
|
||||
@@ -291,14 +292,6 @@ function getHashValueFromAddress() {
|
||||
return str.split("-");
|
||||
}
|
||||
|
||||
async function loadTreeData() {
|
||||
const resp = await server.get('tree');
|
||||
|
||||
treeCache.load(resp.notes, resp.branches, resp.attributes);
|
||||
|
||||
return await treeBuilder.prepareTree();
|
||||
}
|
||||
|
||||
function setProtected(noteId, isProtected) {
|
||||
appContext.getMainNoteTree().getNodesByNoteId(noteId).map(node => {
|
||||
node.data.isProtected = isProtected;
|
||||
@@ -595,7 +588,6 @@ export default {
|
||||
setPrefix,
|
||||
createNote,
|
||||
sortAlphabetically,
|
||||
loadTreeData,
|
||||
treeInitialized,
|
||||
resolveNotePath,
|
||||
getSomeNotePath,
|
||||
|
||||
Reference in New Issue
Block a user