From a5ef9bbfbfbaca828320b47de8ddc016af4d1724 Mon Sep 17 00:00:00 2001 From: Claude Dev Date: Thu, 26 Mar 2026 22:13:01 +0100 Subject: [PATCH] fix: Refresh-Button zeigt Warteschlangen-Status statt Fehlermeldung Bei Klick auf Aktualisieren bleibt der Progress-Indikator aktiv, auch wenn die Recherche in der Warteschlange landet. Statt einer Warning-Meldung wird eine Info-Meldung angezeigt. Erneutes Klicken bestaetigt, dass die Aktualisierung bereits in Bearbeitung ist. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/static/js/app.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/static/js/app.js b/src/static/js/app.js index 06f567b..c4c576f 100644 --- a/src/static/js/app.js +++ b/src/static/js/app.js @@ -1610,10 +1610,10 @@ const App = { } }, - async handleRefresh() { +async handleRefresh() { if (!this.currentIncidentId) return; if (this._refreshingIncidents.has(this.currentIncidentId)) { - UI.showToast('Recherche läuft bereits...', 'warning'); + UI.showToast('Aktualisierung wurde bereits gestartet und ist in Bearbeitung.', 'info'); return; } try { @@ -1622,10 +1622,9 @@ const App = { UI.showProgress('queued'); const result = await API.refreshIncident(this.currentIncidentId); if (result && result.status === 'skipped') { - this._refreshingIncidents.delete(this.currentIncidentId); - this._updateRefreshButton(false); - UI.hideProgress(); - UI.showToast('Recherche läuft bereits oder ist in der Warteschlange.', 'warning'); + UI.showToast('Aktualisierung ist in der Warteschlange und wird ausgefuehrt, sobald die aktuelle Recherche abgeschlossen ist.', 'info'); + } else { + UI.showToast('Aktualisierung gestartet.', 'success'); } } catch (err) { this._refreshingIncidents.delete(this.currentIncidentId);