diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-08-25 17:48:12 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:05:44 +0200 |
| commit | c47a27b826f7d76410308a4151611a366f9eaf46 (patch) | |
| tree | c1ca374204714cedabcacb8620848b903a0bf8d6 /src/pages/App.js | |
| parent | 1ddbbd3563af77a218020021ea50a8832900b4db (diff) | |
Fetch and display datacenter topology
Diffstat (limited to 'src/pages/App.js')
| -rw-r--r-- | src/pages/App.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pages/App.js b/src/pages/App.js index a2a1050b..f34c03cd 100644 --- a/src/pages/App.js +++ b/src/pages/App.js @@ -2,7 +2,7 @@ import PropTypes from "prop-types"; import React from 'react'; import {connect} from "react-redux"; import {openSimulationSucceeded} from "../actions/simulations"; -import {fetchAuthorizationsOfCurrentUser} from "../actions/users"; +import {fetchLatestDatacenter} from "../actions/topology"; import MapStage from "../components/map/MapStage"; import Navbar from "../components/navigation/Navbar"; import Login from "../containers/auth/Login"; @@ -14,7 +14,7 @@ class AppContainer extends React.Component { componentDidMount() { this.props.storeSimulationId(this.props.simulationId); - this.props.fetchAuthorizationsOfCurrentUser(); + this.props.fetchLatestDatacenter(); } render() { @@ -33,7 +33,7 @@ class AppContainer extends React.Component { const mapDispatchToProps = dispatch => { return { storeSimulationId: id => dispatch(openSimulationSucceeded(id)), - fetchAuthorizationsOfCurrentUser: () => dispatch(fetchAuthorizationsOfCurrentUser()), + fetchLatestDatacenter: () => dispatch(fetchLatestDatacenter()), }; }; |
