mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
"duplicate note" now duplicates whole note subtree instead of just individual note
This commit is contained in:
@@ -187,10 +187,10 @@ function changeTitle(req) {
|
||||
return note;
|
||||
}
|
||||
|
||||
function duplicateNote(req) {
|
||||
function duplicateSubtree(req) {
|
||||
const {noteId, parentNoteId} = req.params;
|
||||
|
||||
return noteService.duplicateNote(noteId, parentNoteId);
|
||||
return noteService.duplicateSubtree(noteId, parentNoteId);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
@@ -204,5 +204,5 @@ module.exports = {
|
||||
setNoteTypeMime,
|
||||
getRelationMap,
|
||||
changeTitle,
|
||||
duplicateNote
|
||||
duplicateSubtree
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user