Skip to content

Commit

Permalink
front: fix some consist inputs not being disabled while simulation is…
Browse files Browse the repository at this point in the history
… in progress

Signed-off-by: SharglutDev <p.filimon75@gmail.com>
  • Loading branch information
SharglutDev committed Dec 4, 2024
1 parent e365673 commit 7a409f7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ const StdcmConsist = ({ disabled = false }: StdcmConfigCardProps) => {
min={0}
value={totalMass ?? ''}
onChange={onTotalMassChange}
disabled={disabled}
/>
<Input
id="length"
Expand All @@ -166,6 +167,7 @@ const StdcmConsist = ({ disabled = false }: StdcmConfigCardProps) => {
min={0}
value={totalLength ?? ''}
onChange={onTotalLengthChange}
disabled={disabled}
/>
</div>
<div className="stdcm-consist__properties">
Expand All @@ -183,6 +185,7 @@ const StdcmConsist = ({ disabled = false }: StdcmConfigCardProps) => {
min={0}
value={maxSpeed ?? ''}
onChange={onMaxSpeedChange}
disabled={disabled}
/>
</div>
</StdcmCard>
Expand Down

0 comments on commit 7a409f7

Please sign in to comment.