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);