mirror of
https://github.com/zadam/trilium.git
synced 2025-01-16 20:21:43 +08:00
rename "current" to "active" based on recent refactorings
This commit is contained in:
parent
9f69294f7f
commit
66e2a12f3d
2 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue