forked from ddrilling/asb_cloud_front
design
This commit is contained in:
parent
e42b9069fe
commit
4ad91d861f
@ -26,7 +26,7 @@ export default function DrillingProgram({idWell}) {
|
||||
return
|
||||
}
|
||||
|
||||
if(files.every(fileInfo => fileInfo?.name.endsWith('.xlsx'))){
|
||||
if(files.every(fileInfo => fileInfo?.name.toLowerCase().endsWith('.xlsx'))){
|
||||
setTooltip('Программа доступна для скачивания')
|
||||
selDownloadButtonEnabled(true)
|
||||
}
|
||||
@ -40,6 +40,7 @@ export default function DrillingProgram({idWell}) {
|
||||
<div>
|
||||
<Tooltip title={tooltip}>
|
||||
<Button
|
||||
type="primary"
|
||||
onClick={downloadProgram}
|
||||
disabled={!downloadButtonEnabled}>
|
||||
Сформировать и скачать
|
||||
|
@ -5,6 +5,7 @@ import {
|
||||
AlertOutlined,
|
||||
FilePdfOutlined,
|
||||
DatabaseOutlined,
|
||||
ExperimentOutlined,
|
||||
} from "@ant-design/icons";
|
||||
import { Link, Redirect, Route, Switch, useParams } from "react-router-dom";
|
||||
import TelemetryView from "./TelemetryView";
|
||||
@ -64,7 +65,7 @@ export default function Well() {
|
||||
>
|
||||
{makeMenuItems(rootPath)}
|
||||
</SubMenu>
|
||||
<Menu.Item key="measure" icon={<FolderOutlined />}>
|
||||
<Menu.Item key="measure" icon={<ExperimentOutlined />}>
|
||||
<Link to={`${rootPath}/measure`}>Измерения</Link>
|
||||
</Menu.Item>
|
||||
<Menu.Item key="drillingProgram" icon={<FolderOutlined />}>
|
||||
|
Loading…
Reference in New Issue
Block a user