mirror of
https://github.com/zadam/trilium.git
synced 2026-05-07 00:36:59 +02:00
feat(delete): improve table for broken relations
This commit is contained in:
@@ -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."
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user