|
|
|
@ -59,6 +59,8 @@ function ScriptApi(startNote, currentNote, originEntity) {
|
|
|
|
this.ensureNoteIsPresentInParent = cloningService.ensureNoteIsPresentInParent;
|
|
|
|
this.ensureNoteIsPresentInParent = cloningService.ensureNoteIsPresentInParent;
|
|
|
|
this.ensureNoteIsAbsentFromParent = cloningService.ensureNoteIsAbsentFromParent;
|
|
|
|
this.ensureNoteIsAbsentFromParent = cloningService.ensureNoteIsAbsentFromParent;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.toggleNoteInParent = cloningService.toggleNoteInParent;
|
|
|
|
|
|
|
|
|
|
|
|
this.createNote = noteService.createNote;
|
|
|
|
this.createNote = noteService.createNote;
|
|
|
|
|
|
|
|
|
|
|
|
this.log = message => log.info(`Script ${currentNote.noteId}: ${message}`);
|
|
|
|
this.log = message => log.info(`Script ${currentNote.noteId}: ${message}`);
|
|
|
|
@ -68,6 +70,8 @@ function ScriptApi(startNote, currentNote, originEntity) {
|
|
|
|
|
|
|
|
|
|
|
|
this.sortNotesAlphabetically = treeService.sortNotesAlphabetically;
|
|
|
|
this.sortNotesAlphabetically = treeService.sortNotesAlphabetically;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.setNoteToParent = treeService.setNoteToParent;
|
|
|
|
|
|
|
|
|
|
|
|
this.transactional = sql.transactional;
|
|
|
|
this.transactional = sql.transactional;
|
|
|
|
|
|
|
|
|
|
|
|
this.refreshTree = () => messagingService.sendMessageToAllClients({ type: 'refresh-tree' });
|
|
|
|
this.refreshTree = () => messagingService.sendMessageToAllClients({ type: 'refresh-tree' });
|
|
|
|
|