Skip to content

Commit

Permalink
Merge branch 'main' into deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Sep 22, 2024
2 parents a343484 + a9b296e commit 0e1a540
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions src/components/ImportStateFromRtt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,11 @@ export default function ImportStateFromRtt({ importStateFromRttService, disabled
required
value={rttUri}
onChange={e => setRttUri(e.target.value)}
onKeyDown={e => {
if (e.key === 'Enter') {
importService()
}
}}
/>
</label>
)}
Expand Down
14 changes: 8 additions & 6 deletions src/data/RttUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ export class RttUtils {
if (i === arr.length - 1 && l.destination.some(d => d.tiploc === l.tiploc)) return false
return true
})
.map(l => ({
...stationItemCompleter(l.crs!),
rttPlatform: l.platform ?? null,
arrLateness: l.realtimeGbttArrivalLateness ?? null,
depLateness: l.realtimeGbttDepartureLateness ?? null,
}))
.map(l => {
return {
...stationItemCompleter(l.crs!),
rttPlatform: l.platform ?? null,
arrLateness: l.realtimeGbttArrivalLateness ?? null,
depLateness: l.realtimeGbttDepartureLateness ?? null,
}
})
}

static getEligibleLocations(rttService: RttResponse): CallingAtPointWithRttDetail[] {
Expand Down

0 comments on commit 0e1a540

Please sign in to comment.