fix(web): update modal.confirm cancelText
This commit is contained in:
@@ -51,6 +51,7 @@ const ResetPasswordModal = forwardRef<ResetPasswordModalRef, { source?: 'resetPa
|
||||
<br />
|
||||
【{password}】
|
||||
</>,
|
||||
cancelText: t('common.cancel'),
|
||||
okText: t('common.copy'),
|
||||
okType: 'danger',
|
||||
onOk: () => {
|
||||
|
||||
@@ -37,6 +37,7 @@ const UserManagement: React.FC = () => {
|
||||
modal.confirm({
|
||||
title: t(`user.${record.is_active ? 'disabled' : 'enabled'}Confirm`),
|
||||
okText: t('common.confirm'),
|
||||
cancelText: t('common.cancel'),
|
||||
okType: 'danger',
|
||||
onOk: () => {
|
||||
const res = record.is_active ? deleteUser(record.id) : enableUser(record.id);
|
||||
|
||||
Reference in New Issue
Block a user