Open bloussou opened 5 months ago
In the case where we always allow Electric traction to be selected :
Can't reproduce the bug. Is there a specific pattern @bloussou ?
https://github.com/osrd-project/osrd/assets/113104137/2b79898f-fa8a-4499-8bc0-2cf73b6c1762
There is no need to deactivate the electric traction for thermal RS. It is too much logic and makes it painfull for the user: You miss click on a thermal rolling stock in the list while checking electricity then the button is deactivated. so when you are back on an electric RS you have to click again on the button. IMO the user must be the only one to choose whether electric traction is displayed or not, no logic must to be done in the front
The electric traction checkbox could be moved to the end of the list, displayed when a train using an electric engine is selected from the list, hidden when a train without an electric engine is selected. Ideally, checkbox checked status should be saved for a given user.
@thibautsailly In case the checkbox status is saved : If the user wants to uncheck electric traction on a thermic train and it's hidden, he has to go back to an electrical train to uncheck it. Should we just let the checkbox visible at anytime ?
On a combustion engine path currently it is not possible to select or deselect the
Electric traction
display. If you first selectelectric traction
in a train with electric traction and then switch to acombustion engine
train : you cannot remove theelectric traction
info:https://github.com/osrd-project/osrd/assets/32448554/e389862c-af31-4939-a2f8-308ce5d6a070
Solution:
Electric traction
to be selectedVersion
staging e220992