mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
script API changes for task management #140
This commit is contained in:
@@ -59,6 +59,8 @@ function ScriptApi(startNote, currentNote, originEntity) {
|
||||
this.ensureNoteIsPresentInParent = cloningService.ensureNoteIsPresentInParent;
|
||||
this.ensureNoteIsAbsentFromParent = cloningService.ensureNoteIsAbsentFromParent;
|
||||
|
||||
this.toggleNoteInParent = cloningService.toggleNoteInParent;
|
||||
|
||||
this.createNote = noteService.createNote;
|
||||
|
||||
this.log = message => log.info(`Script ${currentNote.noteId}: ${message}`);
|
||||
@@ -68,6 +70,8 @@ function ScriptApi(startNote, currentNote, originEntity) {
|
||||
|
||||
this.sortNotesAlphabetically = treeService.sortNotesAlphabetically;
|
||||
|
||||
this.setNoteToParent = treeService.setNoteToParent;
|
||||
|
||||
this.transactional = sql.transactional;
|
||||
|
||||
this.refreshTree = () => messagingService.sendMessageToAllClients({ type: 'refresh-tree' });
|
||||
|
||||
Reference in New Issue
Block a user