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 ++++++++++------------ frontend/src/components/navigation/AppNavbar.js | 2 +- frontend/src/components/navigation/Navbar.sass | 1 + 4 files changed, 19 insertions(+), 26 deletions(-) (limited to 'frontend/src/components') 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 ) : ( - - + /> )} - +
  • ) } diff --git a/frontend/src/components/navigation/AppNavbar.js b/frontend/src/components/navigation/AppNavbar.js index da43a330..15f08b5f 100644 --- a/frontend/src/components/navigation/AppNavbar.js +++ b/frontend/src/components/navigation/AppNavbar.js @@ -30,7 +30,7 @@ const AppNavbar = ({ simulationId, inSimulation, fullWidth, onViewTopologies }) title="Topologies" onClick={onViewTopologies} > - + Topologies diff --git a/frontend/src/components/navigation/Navbar.sass b/frontend/src/components/navigation/Navbar.sass index a270bc6b..c9d2aad2 100644 --- a/frontend/src/components/navigation/Navbar.sass +++ b/frontend/src/components/navigation/Navbar.sass @@ -23,6 +23,7 @@ height: 40px background: $blue border: none + padding-top: 10px +clickable &:hover -- cgit v1.2.3