summaryrefslogtreecommitdiff
path: root/frontend/src/containers/modals/ChangeTopologyModal.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-07-07 09:55:10 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:47:25 +0200
commitb4bdf9fde013bb7ff9579693b64ff575f7b00e44 (patch)
tree5e05ceba918849391a639bbeeab37d290a86523c /frontend/src/containers/modals/ChangeTopologyModal.js
parent7331e9baf2cfe7bdfb24effcf0a4801da1e7ea4d (diff)
Rename simulations to projects and remove experiment view
Diffstat (limited to 'frontend/src/containers/modals/ChangeTopologyModal.js')
-rw-r--r--frontend/src/containers/modals/ChangeTopologyModal.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/src/containers/modals/ChangeTopologyModal.js b/frontend/src/containers/modals/ChangeTopologyModal.js
index a1db9032..7904ef59 100644
--- a/frontend/src/containers/modals/ChangeTopologyModal.js
+++ b/frontend/src/containers/modals/ChangeTopologyModal.js
@@ -5,7 +5,7 @@ import { addTopology, deleteTopology } from '../../actions/topologies'
import { setCurrentTopology } from '../../actions/topology/building'
const mapStateToProps = state => {
- let topologies = state.objects.simulation[state.currentSimulationId] ? state.objects.simulation[state.currentSimulationId].topologyIds.map(t => (
+ let topologies = state.objects.project[state.currentProjectId] ? state.objects.project[state.currentProjectId].topologyIds.map(t => (
state.objects.topology[t]
)) : []
if (topologies.filter(t => !t).length > 0) {
@@ -23,14 +23,14 @@ const mapDispatchToProps = dispatch => {
return {
onChooseTopology: (id) => {
dispatch(
- setCurrentTopology(id)
+ setCurrentTopology(id),
)
dispatch(closeChangeTopologyModal())
},
onCreateTopology: (name) => {
if (name) {
dispatch(
- addTopology({name, rooms: []})
+ addTopology({ name, rooms: [] }),
)
}
dispatch(closeChangeTopologyModal())
@@ -39,7 +39,7 @@ const mapDispatchToProps = dispatch => {
if (name) {
// TODO different handling here
dispatch(
- addTopology({name, rooms: []})
+ addTopology({ name, rooms: [] }),
)
}
dispatch(closeChangeTopologyModal())
@@ -47,7 +47,7 @@ const mapDispatchToProps = dispatch => {
onDeleteTopology: (id) => {
if (id) {
dispatch(
- deleteTopology(id)
+ deleteTopology(id),
)
}
},