Display trip details

This commit is contained in:
2025-06-19 01:19:24 +02:00
parent 1d4fc62668
commit 433157278d
4 changed files with 43 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
import { EL } from "./dom.js";
import { displayTripDetails } from "./trip-details.js";
let element_board = document.querySelector("#drafting-board-content");
@@ -91,6 +92,12 @@ export function addJourneyToDraftingBoard(journey) {
},
});
el_trip.innerText = leg?.line?.name;
el_trip.addEventListener("click", event => {
console.log(leg.tripId);
displayTripDetails(leg.tripId);
});
element_board.appendChild(el_trip);
let el_trip_right = EL("div", {