fix: add "sure to delete" to i18n (#1627)

* add "Sure to delete" to i18n(#1569)

* fix: add sure to delete to i18n
This commit is contained in:
陈温鹏
2023-03-07 22:38:48 +08:00
committed by GitHub
parent ff4af6bb4e
commit 7c4a6fea02
27 changed files with 27 additions and 18 deletions

View File

@ -301,7 +301,7 @@ class PermissionListPage extends BaseListPage {
<div>
<Button style={{marginTop: "10px", marginBottom: "10px", marginRight: "10px"}} type="primary" onClick={() => this.props.history.push(`/permissions/${record.owner}/${record.name}`)}>{i18next.t("general:Edit")}</Button>
<Popconfirm
title={`Sure to delete permission: ${record.name} ?`}
title={i18next.t("general:Sure to delete") + `: ${record.name} ?`}
onConfirm={() => this.deletePermission(index)}
>
<Button style={{marginBottom: "10px"}} type="primary" danger>{i18next.t("general:Delete")}</Button>