summaryrefslogtreecommitdiff
path: root/frontend/src/reducers/current-ids.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-07-02 18:39:28 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:47:21 +0200
commitf119fc78dda4d1e828dde04f378a63a93e3a0a7e (patch)
treebea1eace5d47f21a7ccb835c6a6079bc92e48710 /frontend/src/reducers/current-ids.js
parent7f27a6370a0af25e1bf6ff8f46360c6c26c21e0b (diff)
Add current progress on frontend port
Diffstat (limited to 'frontend/src/reducers/current-ids.js')
-rw-r--r--frontend/src/reducers/current-ids.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/src/reducers/current-ids.js b/frontend/src/reducers/current-ids.js
index 6a605d9f..76ae67c7 100644
--- a/frontend/src/reducers/current-ids.js
+++ b/frontend/src/reducers/current-ids.js
@@ -1,12 +1,12 @@
import { OPEN_EXPERIMENT_SUCCEEDED } from '../actions/experiments'
import { OPEN_SIMULATION_SUCCEEDED } from '../actions/simulations'
-import { RESET_CURRENT_DATACENTER, SET_CURRENT_DATACENTER } from '../actions/topology/building'
+import { RESET_CURRENT_TOPOLOGY, SET_CURRENT_TOPOLOGY } from '../actions/topology/building'
-export function currentDatacenterId(state = -1, action) {
+export function currentTopologyId(state = -1, action) {
switch (action.type) {
- case SET_CURRENT_DATACENTER:
- return action.datacenterId
- case RESET_CURRENT_DATACENTER:
+ case SET_CURRENT_TOPOLOGY:
+ return action.topologyId
+ case RESET_CURRENT_TOPOLOGY:
return -1
default:
return state