Skip to content

Build your personal knowledge base with Trilium Notes

feat(delete): improve table for broken relations

Elian Doran1402695dbee4
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index 958a576ccf..e31bfea626 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -99,9 +99,9 @@
"notes_to_be_deleted": "Notes to be deleted ({{notesCount}})",
"no_note_to_delete": "No note will be deleted (only clones).",
"broken_relations_to_be_deleted": "Broken relations ({{relationCount}})",
- "table_note": "Note",
+ "table_note_with_relation": "Note with relation",
"table_relation": "Relation",
- "table_source": "Source",
+ "table_points_to": "Points to (deleted)",
"cancel": "Cancel",
"ok": "OK",
"no_clones_message": "The selected notes have no clones."
diff --git a/apps/client/src/widgets/dialogs/delete_notes.tsx b/apps/client/src/widgets/dialogs/delete_notes.tsx
index 94f1cd0f39..9d6f717d0f 100644
--- a/apps/client/src/widgets/dialogs/delete_notes.tsx
+++ b/apps/client/src/widgets/dialogs/delete_notes.tsx
@@ -221,17 +221,17 @@ function BrokenRelations({ brokenRelations }: { brokenRelations: DeleteNotesPrev
<table className="table table-striped">
<thead>
<tr>
- <th>{t("delete_notes.table_note")}</th>
+ <th>{t("delete_notes.table_note_with_relation")}</th>
<th>{t("delete_notes.table_relation")}</th>
- <th>{t("delete_notes.table_source")}</th>
+ <th>{t("delete_notes.table_points_to")}</th>
</tr>
</thead>
<tbody>
{relationsData.map((relation, index) => (
<tr key={index}>
- <td><NoteLink notePath={relation.noteId} showNoteIcon /></td>
- <td><code>{relation.relationName}</code></td>
<td><NoteLink notePath={relation.sourceNoteId} showNoteIcon /></td>
+ <td><code>{relation.relationName}</code></td>
+ <td><NoteLink notePath={relation.noteId} showNoteIcon /></td>
</tr>
))}
</tbody>