summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/experiments.js5
-rw-r--r--src/actions/topology/building.js17
2 files changed, 6 insertions, 16 deletions
diff --git a/src/actions/experiments.js b/src/actions/experiments.js
index c7cc7e24..c64df019 100644
--- a/src/actions/experiments.js
+++ b/src/actions/experiments.js
@@ -24,9 +24,10 @@ export function deleteExperiment(id) {
};
}
-export function openExperimentSucceeded(id) {
+export function openExperimentSucceeded(simulationId, experimentId) {
return {
type: OPEN_EXPERIMENT_SUCCEEDED,
- id
+ simulationId,
+ experimentId
}
}
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
};
}