feat(delete): improve table for broken relations

This commit is contained in:
Elian Doran
2026-04-11 13:01:18 +03:00
parent 72c42afb50
commit 1402695dbe
2 changed files with 6 additions and 6 deletions

View File

@@ -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."

View File

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