mirror of
https://github.com/zadam/trilium.git
synced 2025-02-24 06:54:44 +08:00
small bulk action fixes
This commit is contained in:
parent
5ca7e39852
commit
aee350b07b
2 changed files with 3 additions and 3 deletions
|
@ -8,8 +8,6 @@ const TPL = `
|
|||
Delete matched notes
|
||||
</td>
|
||||
<td class="button-column">
|
||||
<span class="bx bx-x icon-action action-conf-del"></span>
|
||||
|
||||
<div class="dropdown help-dropdown">
|
||||
<span class="bx bx-help-circle icon-action" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></span>
|
||||
<div class="dropdown-menu dropdown-menu-right p-4">
|
||||
|
@ -20,6 +18,8 @@ const TPL = `
|
|||
<p>To erase notes permanently, you can go after the deletion to the Option -> Other and click the "Erase deleted notes now" button.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<span class="bx bx-x icon-action action-conf-del"></span>
|
||||
</td>
|
||||
</tr>`;
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ const ACTION_HANDLERS = {
|
|||
}
|
||||
},
|
||||
updateRelationTarget: (action, note) => {
|
||||
for (const relation of note.getOwnedLabels(action.relationName)) {
|
||||
for (const relation of note.getOwnedRelations(action.relationName)) {
|
||||
relation.value = action.targetNoteId;
|
||||
relation.save();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue