added new label "sorted" which will keep children notes alphabetically sorted, fixes #82

This commit is contained in:
azivner
2018-08-01 09:26:02 +02:00
parent 9452fc236b
commit 2d24bf81dd
12 changed files with 100 additions and 10 deletions

View File

@@ -4,14 +4,14 @@ const repository = require('./repository');
const cls = require('./cls');
const sourceIdService = require('./source_id');
async function executeNote(note) {
async function executeNote(note, targetNote) {
if (!note.isJavaScript()) {
return;
}
const bundle = await getScriptBundle(note);
await executeBundle(bundle);
await executeBundle(bundle, note, targetNote);
}
async function executeBundle(bundle, startNote, targetNote = null) {