mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 18:05:55 +01:00
added new label "sorted" which will keep children notes alphabetically sorted, fixes #82
This commit is contained in:
@@ -42,6 +42,7 @@ async function getRootCalendarNote() {
|
||||
})).note;
|
||||
|
||||
await labelService.createLabel(rootNote.noteId, CALENDAR_ROOT_LABEL);
|
||||
await labelService.createLabel(rootNote.noteId, 'sorted');
|
||||
}
|
||||
|
||||
return rootNote;
|
||||
@@ -60,6 +61,7 @@ async function getYearNote(dateTimeStr, rootNote) {
|
||||
}
|
||||
|
||||
await labelService.createLabel(yearNote.noteId, YEAR_LABEL, yearStr);
|
||||
await labelService.createLabel(yearNote.noteId, 'sorted');
|
||||
}
|
||||
|
||||
return yearNote;
|
||||
@@ -85,6 +87,7 @@ async function getMonthNote(dateTimeStr, rootNote) {
|
||||
}
|
||||
|
||||
await labelService.createLabel(monthNote.noteId, MONTH_LABEL, monthStr);
|
||||
await labelService.createLabel(monthNote.noteId, 'sorted');
|
||||
}
|
||||
|
||||
return monthNote;
|
||||
|
||||
Reference in New Issue
Block a user