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