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) <noreply@anthropic.com>
Dieser Commit ist enthalten in:
@@ -1610,10 +1610,10 @@ const App = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
async handleRefresh() {
|
async handleRefresh() {
|
||||||
if (!this.currentIncidentId) return;
|
if (!this.currentIncidentId) return;
|
||||||
if (this._refreshingIncidents.has(this.currentIncidentId)) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
@@ -1622,10 +1622,9 @@ const App = {
|
|||||||
UI.showProgress('queued');
|
UI.showProgress('queued');
|
||||||
const result = await API.refreshIncident(this.currentIncidentId);
|
const result = await API.refreshIncident(this.currentIncidentId);
|
||||||
if (result && result.status === 'skipped') {
|
if (result && result.status === 'skipped') {
|
||||||
this._refreshingIncidents.delete(this.currentIncidentId);
|
UI.showToast('Aktualisierung ist in der Warteschlange und wird ausgefuehrt, sobald die aktuelle Recherche abgeschlossen ist.', 'info');
|
||||||
this._updateRefreshButton(false);
|
} else {
|
||||||
UI.hideProgress();
|
UI.showToast('Aktualisierung gestartet.', 'success');
|
||||||
UI.showToast('Recherche läuft bereits oder ist in der Warteschlange.', 'warning');
|
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this._refreshingIncidents.delete(this.currentIncidentId);
|
this._refreshingIncidents.delete(this.currentIncidentId);
|
||||||
|
|||||||
In neuem Issue referenzieren
Einen Benutzer sperren