diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-08 20:16:55 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:05:59 +0200 |
| commit | c9e70ec95f733caa253b362e154b47cd5a26cbfe (patch) | |
| tree | a4e221822909faaab66358ee066036c46a732178 /src/sagas/topology.js | |
| parent | 6296bb95ba93cb9111e19f06329b6c9b9aec57d5 (diff) | |
Display rack space and energy fill on overlay
Diffstat (limited to 'src/sagas/topology.js')
| -rw-r--r-- | src/sagas/topology.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sagas/topology.js b/src/sagas/topology.js index b128ff97..566d2162 100644 --- a/src/sagas/topology.js +++ b/src/sagas/topology.js @@ -9,7 +9,7 @@ import { } from "../actions/topology/building"; import {addUnitSucceeded, deleteMachineSucceeded, deleteUnitSucceeded} from "../actions/topology/machine"; import {addMachineSucceeded, deleteRackSucceeded, editRackNameSucceeded} from "../actions/topology/rack"; -import {addRackToTileSucceeded, deleteRoomSucceeded, editRoomNameSucceeded} from "../actions/topology/room"; +import {deleteRoomSucceeded, editRoomNameSucceeded} from "../actions/topology/room"; import {addRoomToDatacenter} from "../api/routes/datacenters"; import {addTileToRoom, deleteRoom, updateRoom} from "../api/routes/rooms"; import { @@ -242,7 +242,8 @@ export function* onAddRackToTile(action) { }); rack.machineIds = new Array(rack.capacity).fill(null); yield put(addToStore("rack", rack)); - yield put(addRackToTileSucceeded(action.tileId, rack.id)); + yield put(addPropToStoreObject("tile", action.tileId, {objectId: rack.id})); + yield put(addPropToStoreObject("tile", action.tileId, {objectType: "RACK"})); } catch (error) { console.log(error); } |
