This commit is contained in:
Фролов 2021-09-01 15:55:23 +05:00
parent e42b9069fe
commit 4ad91d861f
2 changed files with 4 additions and 2 deletions

View File

@ -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}>
Сформировать и скачать

View File

@ -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 />}>