Fix: Buttons reagieren nicht auf Klicks - Event-Listener werden jetzt sofort registriert, nicht erst nach dem Laden der Daten. Entfernt onclick-Attribute aus HTML, die zu Konflikten führen können.

Co-authored-by: trevor1969 <trevor1969@users.noreply.github.com>
This commit is contained in:
Vibe Nuage Agent
2026-06-05 18:48:49 +00:00
parent 91367a7198
commit 0baceb14c6
2 changed files with 8 additions and 4 deletions

8
app.js
View File

@ -226,8 +226,11 @@ class TeeTracker {
// Initialize
this.initStorage();
this.setupEventListeners();
this.loadData().then(() => {
this.init();
this.renderAll();
this.initCharts();
this.updateSettingsStats();
});
}
@ -631,7 +634,8 @@ class TeeTracker {
// ============================================
init() {
this.setupEventListeners();
// Initialization is now handled in constructor
// This method is kept for backward compatibility
this.renderAll();
this.initCharts();
this.updateSettingsStats();