Skip to content

Commit

Permalink
front: hide manchette op list edition button in stdcm debug
Browse files Browse the repository at this point in the history
- Add a props to choose to display or not the op list's edition button in manchetteWithSpacetimeChart header

Signed-off-by: Math_R_ <[email protected]>
  • Loading branch information
Math-R committed Nov 15, 2024
1 parent cb99790 commit b9237b0
Showing 1 changed file with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,18 @@ const ManchetteWithSpaceTimeChartWrapper = ({
return (
<div className="manchette-space-time-chart-wrapper">
<div className="header">
<ManchetteMenuButton setWaypointsPanelIsOpen={setWaypointsPanelIsOpen} />
{waypointsPanelIsOpen && waypointsPanelData && (
<WaypointsPanel
waypointsPanelIsOpen={waypointsPanelIsOpen}
setWaypointsPanelIsOpen={setWaypointsPanelIsOpen}
waypoints={operationalPoints}
waypointsPanelData={waypointsPanelData}
/>
{waypointsPanelData && (
<>
<ManchetteMenuButton setWaypointsPanelIsOpen={setWaypointsPanelIsOpen} />
{waypointsPanelIsOpen && (
<WaypointsPanel
waypointsPanelIsOpen={waypointsPanelIsOpen}
setWaypointsPanelIsOpen={setWaypointsPanelIsOpen}
waypoints={operationalPoints}
waypointsPanelData={waypointsPanelData}
/>
)}
</>
)}
</div>
<div className="header-separator" />
Expand Down

0 comments on commit b9237b0

Please sign in to comment.