mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
small bulk action fixes
This commit is contained in:
parent
5ca7e39852
commit
aee350b07b
@ -8,8 +8,6 @@ const TPL = `
|
|||||||
Delete matched notes
|
Delete matched notes
|
||||||
</td>
|
</td>
|
||||||
<td class="button-column">
|
<td class="button-column">
|
||||||
<span class="bx bx-x icon-action action-conf-del"></span>
|
|
||||||
|
|
||||||
<div class="dropdown help-dropdown">
|
<div class="dropdown help-dropdown">
|
||||||
<span class="bx bx-help-circle icon-action" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></span>
|
<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">
|
<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>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<span class="bx bx-x icon-action action-conf-del"></span>
|
||||||
</td>
|
</td>
|
||||||
</tr>`;
|
</tr>`;
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ const ACTION_HANDLERS = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
updateRelationTarget: (action, note) => {
|
updateRelationTarget: (action, note) => {
|
||||||
for (const relation of note.getOwnedLabels(action.relationName)) {
|
for (const relation of note.getOwnedRelations(action.relationName)) {
|
||||||
relation.value = action.targetNoteId;
|
relation.value = action.targetNoteId;
|
||||||
relation.save();
|
relation.save();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user