Skip to content

Commit 0c7d5f9

Browse files
GabrielBruno24tahini
authored andcommitted
Add a title and icon to the Stop Nodes submenu in the right panel.
Fix: #1068
1 parent 43f0ecd commit 0c7d5f9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/transition-frontend/src/components/forms/node/TransitNodePanel.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,16 @@ const NodePanel: React.FunctionComponent<WithTranslation> = (props: WithTranslat
144144
// 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?
145145
return (
146146
<div id="tr__form-transit-nodes-panel" className="tr__form-transit-nodes-panel tr__panel">
147+
{!state.selectedNode && !state.selectedNodes && !state.selectedStation && !importerSelected && (
148+
<h3>
149+
<img
150+
src={'/dist/images/icons/transit/node_white.svg'}
151+
className="_icon"
152+
alt={props.t('transit:transitNode:Nodes')}
153+
/>{' '}
154+
{props.t('transit:transitNode:Nodes')}
155+
</h3>
156+
)}
147157
{state.selectedNodes && state.selectedNode && state.selectedNode.hasChanged() && (
148158
<ConfirmModal
149159
isOpen={true}

0 commit comments

Comments
 (0)