diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-05 09:30:42 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:05:57 +0200 |
| commit | 42778e8be409b97059fa519b53c303cdba502e01 (patch) | |
| tree | 23d03a1f8a9f8d137bf723c72086a6d79406874f /src/reducers/topology.js | |
| parent | 6f3afd0317a8e549f77ad6764f6dbe4d4953b67c (diff) | |
Implement rack creation
Diffstat (limited to 'src/reducers/topology.js')
| -rw-r--r-- | src/reducers/topology.js | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/reducers/topology.js b/src/reducers/topology.js index c8690816..caafb7c1 100644 --- a/src/reducers/topology.js +++ b/src/reducers/topology.js @@ -1,9 +1,4 @@ -import { - CANCEL_NEW_ROOM_CONSTRUCTION_SUCCEEDED, - FETCH_LATEST_DATACENTER_SUCCEEDED, - FINISH_NEW_ROOM_CONSTRUCTION, - START_NEW_ROOM_CONSTRUCTION_SUCCEEDED -} from "../actions/topology"; +import {FETCH_LATEST_DATACENTER_SUCCEEDED} from "../actions/topology"; export function currentDatacenterId(state = -1, action) { switch (action.type) { @@ -13,15 +8,3 @@ export function currentDatacenterId(state = -1, action) { return state; } } - -export function currentRoomInConstruction(state = -1, action) { - switch (action.type) { - case START_NEW_ROOM_CONSTRUCTION_SUCCEEDED: - return action.roomId; - case CANCEL_NEW_ROOM_CONSTRUCTION_SUCCEEDED: - case FINISH_NEW_ROOM_CONSTRUCTION: - return -1; - default: - return state; - } -} |
