diff --git a/src/components/ArrivalDeparture.svelte b/src/components/ArrivalDeparture.svelte index e304046..3044a7c 100644 --- a/src/components/ArrivalDeparture.svelte +++ b/src/components/ArrivalDeparture.svelte @@ -79,7 +79,7 @@ + + + {#if $isActive} +
+
+ +
+
+ {/if} + diff --git a/src/components/oba/TripDetailsPane.svelte b/src/components/oba/TripDetailsPane.svelte index 7703c69..75c663b 100644 --- a/src/components/oba/TripDetailsPane.svelte +++ b/src/components/oba/TripDetailsPane.svelte @@ -93,7 +93,7 @@ {#each tripDetails.schedule.stopTimes as tripStop, index}
{#if index === busPosition} import ArrivalDeparture from '../ArrivalDeparture.svelte'; - import TripDetailsModal from '../navigation/TripDetailsModal.svelte'; + // import TripDetailsModal from '../navigation/TripDetailsModal.svelte'; + import TripDetailsPane from '$components/oba/TripDetailsPane.svelte'; import LoadingSpinner from '$components/LoadingSpinner.svelte'; import { onDestroy, onMount } from 'svelte'; import { createEventDispatcher } from 'svelte'; + import Accordion from '$components/containers/Accordion.svelte'; + import AccordionItem from '$components/containers/AccordionItem.svelte'; import '$lib/i18n.js'; import { t } from 'svelte-i18n'; @@ -17,7 +20,6 @@ let loading = false; let error; - let showTripDetails = false; let selectedTripDetails = null; let interval = null; let initialDataLoaded = false; @@ -79,16 +81,19 @@ tripHeadsign: event.detail.tripHeadsign, scheduledArrivalTime: event.detail.scheduledArrivalTime }; - showTripDetails = true; dispatch('tripSelected', selectedTripDetails); dispatch('updateRouteMap', { show: true }); } function handleCloseTripDetailModal() { - showTripDetails = false; + selectedTripDetails = null; dispatch('tripSelected', null); dispatch('updateRouteMap', { show: false }); } + + function selectionChanged() { + console.log('bonk'); + } {#if $isLoading} @@ -104,10 +109,34 @@ {/if} {#if arrivalsAndDepartures} -
+ + {#each arrivalsAndDepartures.arrivalsAndDepartures as arrival} + + + + + + + + {/each} + + + {/if}
{/if}