mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 16:25:51 +01:00
renamed treeCache into froca
This commit is contained in:
@@ -4,7 +4,7 @@ import protectedSessionHolder from './protected_session_holder.js';
|
||||
import toastService from "./toast.js";
|
||||
import ws from "./ws.js";
|
||||
import appContext from "./app_context.js";
|
||||
import treeCache from "./tree_cache.js";
|
||||
import froca from "./tree_cache.js";
|
||||
|
||||
let protectedSessionDeferred = null;
|
||||
|
||||
@@ -32,12 +32,12 @@ function enterProtectedSession() {
|
||||
}
|
||||
|
||||
async function reloadData() {
|
||||
const allNoteIds = Object.keys(treeCache.notes);
|
||||
const allNoteIds = Object.keys(froca.notes);
|
||||
|
||||
await treeCache.loadInitialTree();
|
||||
await froca.loadInitialTree();
|
||||
|
||||
// make sure that all notes used in the application are loaded, including the ones not shown in the tree
|
||||
await treeCache.reloadNotes(allNoteIds, true);
|
||||
await froca.reloadNotes(allNoteIds, true);
|
||||
}
|
||||
|
||||
async function setupProtectedSession(password) {
|
||||
@@ -53,7 +53,7 @@ async function setupProtectedSession(password) {
|
||||
|
||||
await reloadData();
|
||||
|
||||
await appContext.triggerEvent('treeCacheReloaded');
|
||||
await appContext.triggerEvent('frocaReloaded');
|
||||
|
||||
appContext.triggerEvent('protectedSessionStarted');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user