diff --git a/dashboard/app.js b/dashboard/app.js index ad32b5a..0e9f136 100644 --- a/dashboard/app.js +++ b/dashboard/app.js @@ -98,6 +98,14 @@ class DashboardApp { }); } + if (this.elements.carFilter) { + this.elements.carFilter.addEventListener('change', () => { + const carId = this.elements.carFilter.value; + if (carId) + this.fetchChargingSessions(); + }); + } + if (this.elements.downloadSessionsButton) { this.elements.downloadSessionsButton.addEventListener('click', () => { this.downloadChargingSessionsCsv();