summaryrefslogtreecommitdiff
path: root/src/sagas/index.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-06 22:07:16 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:05:57 +0200
commitd5a92d3006561fd631279b68b23a1f8075b28bb8 (patch)
tree39797ed1e314e5e3cd8521239141af1334f18ec5 /src/sagas/index.js
parent02eafd26b8841ed5896ab83672aba13d569ea63d (diff)
Add a button to delete the currently viewed room
Diffstat (limited to 'src/sagas/index.js')
-rw-r--r--src/sagas/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sagas/index.js b/src/sagas/index.js
index e58c966f..024e40aa 100644
--- a/src/sagas/index.js
+++ b/src/sagas/index.js
@@ -5,6 +5,7 @@ import {
ADD_RACK_TO_TILE,
ADD_TILE,
CANCEL_NEW_ROOM_CONSTRUCTION,
+ DELETE_ROOM,
DELETE_TILE,
EDIT_ROOM_NAME,
FETCH_LATEST_DATACENTER,
@@ -17,6 +18,7 @@ import {
onAddRackToTile,
onAddTile,
onCancelNewRoomConstruction,
+ onDeleteRoom,
onDeleteTile,
onEditRoomName,
onFetchLatestDatacenter,
@@ -36,5 +38,6 @@ export default function* rootSaga() {
yield takeEvery(ADD_TILE, onAddTile);
yield takeEvery(DELETE_TILE, onDeleteTile);
yield takeEvery(EDIT_ROOM_NAME, onEditRoomName);
+ yield takeEvery(DELETE_ROOM, onDeleteRoom);
yield takeEvery(ADD_RACK_TO_TILE, onAddRackToTile);
}