renamed treeCache into froca

This commit is contained in:
zadam
2021-04-16 22:57:37 +02:00
parent 4311834d75
commit af5b1021c7
63 changed files with 292 additions and 292 deletions

View File

@@ -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');