Skip to content

Commit 4a4a24e

Browse files
committed
feat(site): show entity name in DeleteDialog
1 parent 0a213a6 commit 4a4a24e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

site/src/components/Dialogs/DeleteDialog/DeleteDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const DeleteDialog: FC<PropsWithChildren<DeleteDialogProps>> = ({
3939
<Maybe condition={info !== undefined}>
4040
<p className={styles.warning}>{info}</p>
4141
</Maybe>
42-
<p>{t("deleteDialog.confirm", { entity })}</p>
42+
<p>{t("deleteDialog.confirm", { entity, name })}</p>
4343

4444
<form
4545
onSubmit={(e) => {

site/src/i18n/en/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"deleteDialog": {
1717
"title": "Delete {{entity}}",
1818
"intro": "Deleting this {{entity}} is irreversible!",
19-
"confirm": "Are you sure you want to proceed? Type the name of this {{entity}} below to confirm.",
19+
"confirm": "Are you sure you want to proceed? Type {{name}} below to confirm.",
2020
"confirmLabel": "Name of {{entity}} to delete",
2121
"incorrectName": "Incorrect {{entity}} name."
2222
},

0 commit comments

Comments
 (0)