"duplicate note" now duplicates whole note subtree instead of just individual note

This commit is contained in:
zadam
2020-11-19 14:06:32 +01:00
parent 8ec476ba96
commit 314e0a453f
7 changed files with 65 additions and 20 deletions

View File

@@ -88,7 +88,7 @@ function parseSelectedHtml(selectedHtml) {
}
}
async function duplicateNote(noteId, parentNoteId) {
async function duplicateSubtree(noteId, parentNoteId) {
const {note} = await server.post(`notes/${noteId}/duplicate/${parentNoteId}`);
await ws.waitForMaxKnownEntityChangeId();
@@ -102,5 +102,5 @@ async function duplicateNote(noteId, parentNoteId) {
export default {
createNote,
createNewTopLevelNote,
duplicateNote
duplicateSubtree
};