small bulk action fixes

This commit is contained in:
zadam 2022-06-17 23:12:52 +02:00
parent 5ca7e39852
commit aee350b07b
2 changed files with 3 additions and 3 deletions

View file

@ -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>`;

View file

@ -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();
}