File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import LabResultsPlot from "../components/LabResultsPlot";
77import LabResultsTable from "../components/LabResultsTable" ;
88import { ExperimentResult } from "../dto/ExperimentResult.tsx" ;
99import { useSimulationQueries } from "../hooks/useSimulationQueriesResult.ts" ;
10+ import DownloadButton from "../components/DownloadButton.tsx" ;
1011
1112const LabResults : React . FC = ( ) => {
1213 const [ selectedExperiments , setSelectedExperiments ] = useState < ExperimentResult [ ] > ( [ ] ) ;
@@ -59,6 +60,22 @@ const LabResults: React.FC = () => {
5960 isLoading = { simulationQueryResults . isLoading }
6061 />
6162
63+ { selectedExperiments . length > 0 && (
64+ < div
65+ style = { {
66+ display : "flex" ,
67+ justifyContent : "flex-end" ,
68+ marginTop : "1rem" ,
69+ marginBottom : "2rem" ,
70+ } }
71+ >
72+ < DownloadButton
73+ simulationResultsPerExperiment = { simulationQueryResults . data }
74+ experimentResults = { selectedExperiments }
75+ isLoading = { simulationQueryResults . isLoading }
76+ />
77+ </ div >
78+ ) }
6279 < LabResultsTable
6380 labResults = { labResults }
6481 selectedExperiments = { selectedExperimentData }
You can’t perform that action at this time.
0 commit comments