|
|
@ -3,6 +3,7 @@ import { BetaSchemaForm, ProColumns, ProFormColumnsType, ProTable } from '@ant-d |
|
|
|
import { useTranslation } from '@/i18n.ts' |
|
|
|
import { useAtom, useAtomValue } from 'jotai' |
|
|
|
import { Button, Form, Popconfirm } from 'antd' |
|
|
|
import Action from '@/components/action/Action.tsx' |
|
|
|
import { |
|
|
|
deleteDNSAtom, |
|
|
|
dnsListAtom, |
|
|
@ -203,6 +204,12 @@ const DNSList = () => { |
|
|
|
valueType: 'option', |
|
|
|
render: (_, record) => { |
|
|
|
return [ |
|
|
|
<Action key="edit" |
|
|
|
as={'a'} |
|
|
|
onClick={() => { |
|
|
|
form.setFieldsValue(record) |
|
|
|
setOpen(true) |
|
|
|
}}>{t('actions.edit')}</Action>, |
|
|
|
<Popconfirm |
|
|
|
key={'del_confirm'} |
|
|
|
disabled={isDeleting} |
|
|
|