Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
rename "current" to "active" based on recent refactorings
zadam66e2a12f3d47
diff --git a/src/public/javascripts/dialogs/add_link.js b/src/public/javascripts/dialogs/add_link.jsindex d7dd948291..cde8f5d18f 100644--- a/src/public/javascripts/dialogs/add_link.js+++ b/src/public/javascripts/dialogs/add_link.js@@ -25,7 +25,7 @@ function setLinkType(linkType) {}async function showDialogForClone() {- showDialog('selected-to-current');+ showDialog('selected-to-active');}async function showDialog(linkType) {@@ -39,10 +39,10 @@ async function showDialog(linkType) {else {$linkTypeHtml.prop('disabled', true);- setLinkType('selected-to-current');+ setLinkType('selected-to-active');}- if (linkType==='selected-to-current') {+ if (linkType === 'selected-to-active') {setLinkType(linkType);}@@ -104,14 +104,14 @@ $form.submit(() => {linkService.addLinkToEditor(linkTitle, linkHref);}}- else if (linkType === 'selected-to-current') {+ else if (linkType === 'selected-to-active') {const prefix = $clonePrefix.val();cloningService.cloneNoteTo(noteId, noteDetailService.getActiveNoteId(), prefix);$dialog.modal('hide');}- else if (linkType === 'current-to-selected') {+ else if (linkType === 'active-to-selected') {const prefix = $clonePrefix.val();cloningService.cloneNoteTo(noteDetailService.getActiveNoteId(), noteId, prefix);diff --git a/src/views/dialogs/add_link.ejs b/src/views/dialogs/add_link.ejsindex ce9a484a50..6cdc1493a3 100644--- a/src/views/dialogs/add_link.ejs+++ b/src/views/dialogs/add_link.ejs@@ -18,11 +18,11 @@add normal HTML link</label><label title="Add selected note as a child of active note">- <input type="radio" name="add-link-type" value="selected-to-current"/>+ <input type="radio" name="add-link-type" value="selected-to-active"/>add selected note to active note</label><label title="Add active note as a child of the selected note">- <input type="radio" name="add-link-type" value="current-to-selected"/>+ <input type="radio" name="add-link-type" value="active-to-selected"/>add active note to selected note</label></div>