button zum prüfen
This commit is contained in:
@@ -986,11 +986,11 @@ const StoreWatchPage = ({
|
||||
checkedAt: Date.now(),
|
||||
stores: summary
|
||||
});
|
||||
setStatus('Ad-hoc-Prüfung abgeschlossen. Zusammenfassung versendet.');
|
||||
setStatus('Aktualisierung abgeschlossen. Zusammenfassung versendet.');
|
||||
setTimeout(() => setStatus(''), 4000);
|
||||
await loadSubscriptions();
|
||||
} catch (err) {
|
||||
setError(`Ad-hoc-Prüfung fehlgeschlagen: ${err.message}`);
|
||||
setError(`Aktualisierung fehlgeschlagen: ${err.message}`);
|
||||
} finally {
|
||||
setAdhocChecking(false);
|
||||
}
|
||||
@@ -1019,7 +1019,7 @@ const StoreWatchPage = ({
|
||||
onClick={handleAdhocWatchCheck}
|
||||
disabled={adhocChecking || subscriptionsLoading || watchList.length === 0}
|
||||
>
|
||||
{adhocChecking ? 'Prüfe...' : 'Ad-hoc prüfen'}
|
||||
{adhocChecking ? 'Aktualisiere...' : 'Aktualisieren'}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
@@ -1133,7 +1133,7 @@ const StoreWatchPage = ({
|
||||
{lastAdhocCheck?.stores?.length > 0 && (
|
||||
<div className="mt-4 rounded-lg border border-blue-100 bg-blue-50 p-3 text-sm text-blue-900">
|
||||
<p className="text-xs font-semibold text-blue-800">
|
||||
Letzte Ad-hoc-Prüfung:{' '}
|
||||
Letzte Aktualisierung:{' '}
|
||||
{new Date(lastAdhocCheck.checkedAt).toLocaleString('de-DE')}
|
||||
</p>
|
||||
<ul className="mt-2 space-y-1 text-xs">
|
||||
|
||||
Reference in New Issue
Block a user