mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
added cloning to the "add link" dialog
This commit is contained in:
@@ -38,8 +38,10 @@ const treeChanges = (function() {
|
||||
});
|
||||
}
|
||||
|
||||
async function cloneNoteTo(childNoteId, parentNoteId) {
|
||||
const resp = await server.put('notes/' + childNoteId + '/clone-to/' + parentNoteId);
|
||||
async function cloneNoteTo(childNoteId, parentNoteId, prefix) {
|
||||
const resp = await server.put('notes/' + childNoteId + '/clone-to/' + parentNoteId, {
|
||||
prefix: prefix
|
||||
});
|
||||
|
||||
if (!resp.success) {
|
||||
alert(resp.message);
|
||||
|
||||
Reference in New Issue
Block a user