chore: adjust the deletion modal config

This commit is contained in:
jialin
2024-12-24 10:34:08 +08:00
parent 762ab30c71
commit 02391e66dc
9 changed files with 65 additions and 14 deletions
+2
View File
@@ -118,6 +118,7 @@ const APIKeys: React.FC = () => {
const handleDelete = (row: ListItem) => {
modalRef.current.show({
content: 'apikeys.table.apikeys',
operation: 'common.delete.single.confirm',
name: row.name,
async onOk() {
console.log('OK');
@@ -130,6 +131,7 @@ const APIKeys: React.FC = () => {
const handleDeleteBatch = () => {
modalRef.current.show({
content: 'apikeys.table.apikeys',
operation: 'common.delete.confirm',
selection: true,
async onOk() {
await handleBatchRequest(rowSelection.selectedRowKeys, deleteApisKey);