diff --git a/src/lib/components/StationInfo.svelte b/src/lib/components/StationInfo.svelte index 1cce787..75b6534 100644 --- a/src/lib/components/StationInfo.svelte +++ b/src/lib/components/StationInfo.svelte @@ -6,7 +6,7 @@ import { fade, fly } from 'svelte/transition'; import { quintOut } from 'svelte/easing'; - import { IconDisabled, IconUserCheck, IconTrafficLights } from '@tabler/icons-svelte'; + import { IconDisabled, IconDisabledOff, IconUserCheck, IconTrafficLights } from '@tabler/icons-svelte'; let { crs, onclose }: { crs: string; onclose: () => void } = $props(); @@ -41,13 +41,13 @@ console.error(err); }); } else { - error = `Station ${crs} not found in database`; + error = `Station ${crs.toUpperCase()} not found in database`; } }); function parsePlatform(id: string) { id = String(id || ''); - const match = id.match(/^(.*?)(Up|Dn)$/); + const match = id.match(/^(.*?)(Up|Dn|BiDi)$/); if (match) { return { plat: match[1], direction: match[2] }; } @@ -79,7 +79,7 @@ e.target === dialogRef && onclose()}> {#if stationData || error} -