fix: delete confirm add
This commit is contained in:
		| @@ -160,8 +160,15 @@ export const AppVersionList = () => { | ||||
|                         /> */} | ||||
|                         <Tooltip title='Delete'> | ||||
|                           <Button | ||||
|                             onClick={() => { | ||||
|                               versionStore.deleteData(item.id); | ||||
|                             onClick={(e) => { | ||||
|                               Modal.confirm({ | ||||
|                                 title: 'Delete', | ||||
|                                 content: 'Are you sure delete this data?', | ||||
|                                 onOk: () => { | ||||
|                                   versionStore.deleteData(item.id); | ||||
|                                 }, | ||||
|                               }); | ||||
|                               e.stopPropagation(); | ||||
|                             }} | ||||
|                             icon={<DeleteOutlined />} | ||||
|                           /> | ||||
|   | ||||
| @@ -157,7 +157,18 @@ export const List = () => { | ||||
|                             }}></Button> | ||||
|                         </Tooltip> | ||||
|                         <Tooltip title={'Delete'}> | ||||
|                           <Button icon={<DeleteOutlined />} onClick={() => userAppStore.deleteData(item.id)}></Button> | ||||
|                           <Button | ||||
|                             icon={<DeleteOutlined />} | ||||
|                             onClick={(e) => { | ||||
|                               Modal.confirm({ | ||||
|                                 title: 'Delete', | ||||
|                                 content: 'Are you sure delete this data?', | ||||
|                                 onOk: () => { | ||||
|                                   userAppStore.deleteData(item.id); | ||||
|                                 }, | ||||
|                               }); | ||||
|                               e.stopPropagation(); | ||||
|                             }}></Button> | ||||
|                         </Tooltip> | ||||
|                       </Button.Group> | ||||
|                     </div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user