From 107a48e1a7fa0ec56faad8d8e90f76521f39f3b2 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Fri, 3 Jul 2020 09:51:20 +0200 Subject: Get entire topology editing process working --- .../sidebars/topology/machine/UnitAddComponent.js | 8 +---- .../app/sidebars/topology/machine/UnitComponent.js | 34 ++++++++++------------ 2 files changed, 17 insertions(+), 25 deletions(-) (limited to 'frontend/src/components/app') diff --git a/frontend/src/components/app/sidebars/topology/machine/UnitAddComponent.js b/frontend/src/components/app/sidebars/topology/machine/UnitAddComponent.js index e8722506..98238de7 100644 --- a/frontend/src/components/app/sidebars/topology/machine/UnitAddComponent.js +++ b/frontend/src/components/app/sidebars/topology/machine/UnitAddComponent.js @@ -17,13 +17,7 @@ class UnitAddComponent extends React.Component { > {this.props.units.map(unit => ( ))} diff --git a/frontend/src/components/app/sidebars/topology/machine/UnitComponent.js b/frontend/src/components/app/sidebars/topology/machine/UnitComponent.js index 647c8e5c..bde6d444 100644 --- a/frontend/src/components/app/sidebars/topology/machine/UnitComponent.js +++ b/frontend/src/components/app/sidebars/topology/machine/UnitComponent.js @@ -39,31 +39,29 @@ class UnitComponent extends React.Component { return (
  • - - {this.props.unit.name} - + + {this.props.unit.name} + - + {this.props.inSimulation ? ( undefined ) : ( - - + /> )} - +
  • ) } -- cgit v1.2.3