Закоментирована кнопка дублирования скважины, раскоментирована кнопка смены пароля

This commit is contained in:
Александр Сироткин 2021-12-28 15:13:05 +05:00
parent e533d48179
commit 19afed9c4f
2 changed files with 4 additions and 4 deletions

View File

@ -162,7 +162,7 @@ export default function UserController() {
onRowAdd={makeActionHandler('insert', handlerProps)}
onRowEdit={makeActionHandler('update', handlerProps)}
onRowDelete={makeActionHandler('delete', handlerProps)}
// additionalButtons={additionalButtons}
additionalButtons={additionalButtons}
buttonsWidth={120}
pagination={{ defaultPageSize: 14 }}
/>

View File

@ -1,5 +1,5 @@
import { Button, Select } from 'antd'
import { ForkOutlined } from '@ant-design/icons'
import { CopyOutlined } from '@ant-design/icons'
import { memo, useEffect, useState } from 'react'
import LoaderPortal from '../../components/LoaderPortal'
@ -65,7 +65,7 @@ export default function WellController() {
const addititonalButtons = (record, editingKey) => (
<Button
icon={<ForkOutlined />}
icon={<CopyOutlined />}
title={'Дублировать скважину'}
disabled={(editingKey ?? '') !== ''}
onClick={() => duplicateWell(record)}
@ -135,7 +135,7 @@ export default function WellController() {
onRowAdd={makeActionHandler('insert', handlerProps)}
onRowEdit={makeActionHandler('update', handlerProps)}
onRowDelete={makeActionHandler('delete', handlerProps)}
additionalButtons={addititonalButtons}
//additionalButtons={addititonalButtons}
buttonsWidth={95}
/>
</LoaderPortal>