diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-14 14:07:21 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:06:02 +0200 |
| commit | f604406453f95c82c3e5e4294a51245661868bbe (patch) | |
| tree | 6282cc3eb3164ddd94052175f872c8fc2ee2f623 /src/pages | |
| parent | 7151ae60cf587a502a7e09d19ebd0fd33e761bf2 (diff) | |
First attempt at experiment list UI
Diffstat (limited to 'src/pages')
| -rw-r--r-- | src/pages/Experiments.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/pages/Experiments.js b/src/pages/Experiments.js index 9dbe0dc0..d1d19d9f 100644 --- a/src/pages/Experiments.js +++ b/src/pages/Experiments.js @@ -1,8 +1,11 @@ import PropTypes from "prop-types"; import React from "react"; import {connect} from "react-redux"; +import {fetchExperimentsOfSimulation} from "../actions/experiments"; import {openSimulationSucceeded} from "../actions/simulations"; import AppNavbar from "../components/navigation/AppNavbar"; +import ExperimentListContainer from "../containers/experiments/ExperimentListContainer"; +import NewExperimentModal from "../containers/modals/NewExperimentModal"; class ExperimentsComponent extends React.Component { static propTypes = { @@ -11,7 +14,7 @@ class ExperimentsComponent extends React.Component { componentDidMount() { this.props.storeSimulationId(this.props.simulationId); - // TODO fetch experiments + this.props.fetchExperimentsOfSimulation(this.props.simulationId); } render() { @@ -19,8 +22,9 @@ class ExperimentsComponent extends React.Component { <div className="full-height"> <AppNavbar simulationId={this.props.simulationId} inSimulation={true}/> <div className="container text-page-container full-height"> - Test + <ExperimentListContainer/> </div> + <NewExperimentModal/> </div> ); } @@ -29,6 +33,7 @@ class ExperimentsComponent extends React.Component { const mapDispatchToProps = dispatch => { return { storeSimulationId: id => dispatch(openSimulationSucceeded(id)), + fetchExperimentsOfSimulation: id => dispatch(fetchExperimentsOfSimulation(id)), }; }; |
