forked from ddrilling/asb_cloud_front
Добавлена блокировка кнопки удаления при редактировании записи в таблице
This commit is contained in:
parent
db41e9dabb
commit
88fc1bf09f
@ -210,8 +210,8 @@ export const EditableTable = memo(({
|
||||
/>
|
||||
)}
|
||||
{onDelete && (
|
||||
<Popconfirm title={'Удалить?'} onConfirm={() => deleteRow(record)}>
|
||||
<Button icon={<DeleteOutlined/>}/>
|
||||
<Popconfirm disabled={editingKey !== ''} title={'Удалить?'} onConfirm={() => deleteRow(record)}>
|
||||
<Button disabled={editingKey !== ''} icon={<DeleteOutlined/>}/>
|
||||
</Popconfirm>
|
||||
)}
|
||||
{additionalButtons?.(record, editingKey)}
|
||||
|
Loading…
Reference in New Issue
Block a user