Skip to content

Commit

Permalink
front: lmr: linked path adjustments
Browse files Browse the repository at this point in the history
Signed-off-by: SarahBellaha <sarah.bellaha@sncf.fr>
  • Loading branch information
SarahBellaha committed Dec 17, 2024
1 parent 5090fb4 commit c6daa01
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const StdcmLinkedPathSearch = ({
selectableSlot={selectableSlot}
value={linkedPathDate}
onDateChange={(date) => {
setDisplaySearchButton(true);
setLinkedPathDate(date);
}}
/>
Expand Down
1 change: 1 addition & 0 deletions front/src/applications/stdcm/hooks/useLinkedPathSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ const useLinkedPathSearch = () => {

if (!filteredResults.length) {
setDisplaySearchButton(true);
setLinkedPathResults([]);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion front/src/applications/stdcm/hooks/useStdcmEnv.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function useStdcmEnvironment() {
workScheduleGroupId: data.work_schedule_group_id,
temporarySpeedLimitGroupId: data.temporary_speed_limit_group_id,
searchDatetimeWindow: {
begin: new Date(data.search_window_begin),
begin: new Date(`${data.search_window_begin}Z`), // TODO: Remove this temporary fix when editoast returns the date in UTC
end: new Date(data.search_window_end),
},
})
Expand Down
2 changes: 2 additions & 0 deletions front/src/styles/scss/applications/stdcm/_linkedPath.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@
}

.train-name {
font-weight: 500;
font-size: 1rem;
padding-top: 4px;
margin-bottom: 4px;
text-align: start;
}
.opDetails {
font-size: 0.875rem;
Expand Down

0 comments on commit c6daa01

Please sign in to comment.