summaryrefslogtreecommitdiff
path: root/src/actions/topology
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-18 16:52:11 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:06:04 +0200
commitf8f617c97fcb2df3dbefc9527d974151e367cb60 (patch)
treef6405aa54f73b66220f36e3a388725f71d023cfb /src/actions/topology
parent9f86ae6de969baa625e3341c796c64f63b5153ce (diff)
Implement basic experiment mode with timeline
The timeline doesn't trigger anything yet, but the visual element is in place and connected.
Diffstat (limited to 'src/actions/topology')
-rw-r--r--src/actions/topology/building.js17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/actions/topology/building.js b/src/actions/topology/building.js
index 4138d2b5..019a473c 100644
--- a/src/actions/topology/building.js
+++ b/src/actions/topology/building.js
@@ -1,5 +1,4 @@
-export const FETCH_LATEST_DATACENTER = "FETCH_LATEST_DATACENTER";
-export const FETCH_LATEST_DATACENTER_SUCCEEDED = "FETCH_LATEST_DATACENTER_SUCCEEDED";
+export const SET_CURRENT_DATACENTER = "SET_CURRENT_DATACENTER";
export const RESET_CURRENT_DATACENTER = "RESET_CURRENT_DATACENTER";
export const START_NEW_ROOM_CONSTRUCTION = "START_NEW_ROOM_CONSTRUCTION";
export const START_NEW_ROOM_CONSTRUCTION_SUCCEEDED = "START_NEW_ROOM_CONSTRUCTION_SUCCEEDED";
@@ -9,19 +8,9 @@ export const CANCEL_NEW_ROOM_CONSTRUCTION_SUCCEEDED = "CANCEL_NEW_ROOM_CONSTRUCT
export const ADD_TILE = "ADD_TILE";
export const DELETE_TILE = "DELETE_TILE";
-export function fetchLatestDatacenter() {
- return (dispatch, getState) => {
- const {currentSimulationId} = getState();
- dispatch({
- type: FETCH_LATEST_DATACENTER,
- currentSimulationId
- });
- };
-}
-
-export function fetchLatestDatacenterSucceeded(datacenterId) {
+export function setCurrentDatacenter(datacenterId) {
return {
- type: FETCH_LATEST_DATACENTER_SUCCEEDED,
+ type: SET_CURRENT_DATACENTER,
datacenterId
};
}