summaryrefslogtreecommitdiff
path: root/src/components/map
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-07 19:27:13 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:05:58 +0200
commit8218c3d3c21bfa7c4f3ee4872722b9b1261576fb (patch)
tree16b8d0b8813aed0c846310a3fa4a01bd8ad18c60 /src/components/map
parenta7d2ac48224c4226003d67f77143738cc72aa016 (diff)
Add machine mode with title and delete options
Diffstat (limited to 'src/components/map')
-rw-r--r--src/components/map/groups/RoomGroup.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/map/groups/RoomGroup.js b/src/components/map/groups/RoomGroup.js
index 1c42106a..7c8392aa 100644
--- a/src/components/map/groups/RoomGroup.js
+++ b/src/components/map/groups/RoomGroup.js
@@ -19,7 +19,8 @@ const RoomGroup = ({room, interactionLevel, currentRoomInConstruction, onClick})
return (
<Group onClick={onClick}>
{(() => {
- if (interactionLevel.mode === "RACK" && interactionLevel.roomId === room.id) {
+ if ((interactionLevel.mode === "RACK" || interactionLevel.mode === "MACHINE")
+ && interactionLevel.roomId === room.id) {
return [
room.tileIds
.filter(tileId => tileId !== interactionLevel.tileId)