From d6abb023b4535ca06e549b81bbb901cf3f1e0d2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Tue, 16 Dec 2025 11:12:55 +0100 Subject: [PATCH] Update filtering car --- dashboard/app.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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();