import fixes

This commit is contained in:
zadam 2020-07-27 23:40:14 +02:00
parent c92526372c
commit c9cbc2db02
4 changed files with 8 additions and 5 deletions

View File

@ -7,7 +7,7 @@ const zipImportService = require('../../services/import/zip');
const singleImportService = require('../../services/import/single');
const cls = require('../../services/cls');
const path = require('path');
const noteCacheService = require('../../services/note_cache/note_cache.js');
const noteCacheLoader = require('../../services/note_cache/note_cache_loader.js');
const log = require('../../services/log');
const TaskContext = require('../../services/task_context.js');
@ -77,7 +77,7 @@ async function importToBranch(req) {
// import has deactivated note events so note cache is not updated
// instead we force it to reload (can be async)
noteCacheService.load();
noteCacheLoader.load();
return note;
}

View File

@ -20,7 +20,8 @@ function sanitize(dirtyHtml) {
'label': [ 'class' ],
'input': [ 'class', 'type', 'disabled' ],
'code': [ 'class' ]
}
},
allowedSchemes: ['http', 'https', 'ftp', 'mailto', 'data']
});
}

View File

@ -22,8 +22,6 @@ class NoteCache {
this.attributeIndex = {};
this.loaded = false;
this.loadedResolve = null;
this.loadedPromise = new Promise(res => {this.loadedResolve = res;});
}
/** @return {Attribute[]} */

View File

@ -154,3 +154,7 @@ eventService.subscribe([eventService.ENTITY_CHANGED, eventService.ENTITY_DELETED
eventService.subscribe(eventService.ENTER_PROTECTED_SESSION, () => {
noteCache.decryptProtectedNotes();
});
module.exports = {
load
};