Skip to content

Build your personal knowledge base with Trilium Notes

small bulk action fixes

zadamaee350b07b56
diff --git a/src/public/app/widgets/bulk_actions/note/delete_note.js b/src/public/app/widgets/bulk_actions/note/delete_note.js
index 77fe41995b..585a327490 100644
--- a/src/public/app/widgets/bulk_actions/note/delete_note.js
+++ b/src/public/app/widgets/bulk_actions/note/delete_note.js
@@ -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>`;
diff --git a/src/services/bulk_actions.js b/src/services/bulk_actions.js
index ada23c7483..72a0f8d1e5 100644
--- a/src/services/bulk_actions.js
+++ b/src/services/bulk_actions.js
@@ -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();
}