From 0c7d5f96a7ffc168c2a550851260639f501f8d31 Mon Sep 17 00:00:00 2001 From: Gabriel Bruno Date: Wed, 25 Sep 2024 15:44:52 -0400 Subject: [PATCH] Add a title and icon to the Stop Nodes submenu in the right panel. Fix: #1068 --- .../src/components/forms/node/TransitNodePanel.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/transition-frontend/src/components/forms/node/TransitNodePanel.tsx b/packages/transition-frontend/src/components/forms/node/TransitNodePanel.tsx index c7d88d77..994b1d60 100644 --- a/packages/transition-frontend/src/components/forms/node/TransitNodePanel.tsx +++ b/packages/transition-frontend/src/components/forms/node/TransitNodePanel.tsx @@ -144,6 +144,16 @@ const NodePanel: React.FunctionComponent = (props: WithTranslat // TODO Review the conditions to define which part is opened. This is a bit complicated wrt the state. Can there really be both selectedNode and selectedNodes? return (
+ {!state.selectedNode && !state.selectedNodes && !state.selectedStation && !importerSelected && ( +

+ {props.t('transit:transitNode:Nodes')}{' '} + {props.t('transit:transitNode:Nodes')} +

+ )} {state.selectedNodes && state.selectedNode && state.selectedNode.hasChanged() && (