Update filtering car
This commit is contained in:
parent
f943325019
commit
d6abb023b4
@ -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) {
|
if (this.elements.downloadSessionsButton) {
|
||||||
this.elements.downloadSessionsButton.addEventListener('click', () => {
|
this.elements.downloadSessionsButton.addEventListener('click', () => {
|
||||||
this.downloadChargingSessionsCsv();
|
this.downloadChargingSessionsCsv();
|
||||||
|
|||||||
Reference in New Issue
Block a user