mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
added new label "sorted" which will keep children notes alphabetically sorted, fixes #82
This commit is contained in:
@@ -5,6 +5,7 @@ const utils = require('./utils');
|
||||
const dateUtils = require('./date_utils');
|
||||
const labelService = require('./labels');
|
||||
const dateNoteService = require('./date_notes');
|
||||
const treeService = require('./tree');
|
||||
const config = require('./config');
|
||||
const repository = require('./repository');
|
||||
const axios = require('axios');
|
||||
@@ -61,6 +62,8 @@ function ScriptApi(startNote, currentNote, targetNote) {
|
||||
this.getRootCalendarNote = dateNoteService.getRootCalendarNote;
|
||||
this.getDateNote = dateNoteService.getDateNote;
|
||||
|
||||
this.sortNotesAlphabetically = treeService.sortNotesAlphabetically;
|
||||
|
||||
this.transactional = sql.transactional;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user