diff --git a/messages/de.json b/messages/de.json index 304174e73..fdfd90c37 100644 --- a/messages/de.json +++ b/messages/de.json @@ -1436,7 +1436,8 @@ "activeTokens": "Aktive API-Tokens", "activeSessions": "Aktive Sessions", "loadingStatus": "Lade Status...", - "systemStatusLoadError": "System-Status konnte nicht geladen werden. Bitte die Seite neu laden.", + "systemStatusLoadError": "System-Status konnte nicht geladen werden.", + "systemStatusRetry": "Erneut versuchen", "adminSettingsLoadError": "Admin-Einstellungen konnten nicht geladen werden. Schalter unten zeigen evtl. nicht den Live-Zustand — Seite neu laden.", "hostMetrics": { "title": "Host-Auslastung", diff --git a/messages/en.json b/messages/en.json index a91159b0d..cd6869721 100644 --- a/messages/en.json +++ b/messages/en.json @@ -1436,7 +1436,8 @@ "activeTokens": "Active API Tokens", "activeSessions": "Active Sessions", "loadingStatus": "Loading status...", - "systemStatusLoadError": "Failed to load system status. Try refreshing the page.", + "systemStatusLoadError": "Failed to load system status.", + "systemStatusRetry": "Retry", "adminSettingsLoadError": "Failed to load admin settings. Toggles below may not reflect the live state — refresh the page.", "hostMetrics": { "title": "Host load", diff --git a/src/components/admin/system-status-section.tsx b/src/components/admin/system-status-section.tsx index a88e6721a..817a75fa0 100644 --- a/src/components/admin/system-status-section.tsx +++ b/src/components/admin/system-status-section.tsx @@ -13,9 +13,11 @@ import { Globe, Key, Loader2, + RotateCw, Server, Users, } from "lucide-react"; +import { Button } from "@/components/ui/button"; import { formatDateTime } from "@/lib/format"; import { useFormatters, useTranslations } from "@/lib/i18n/context"; import { StatusItem, useSystemStatus } from "./_shared"; @@ -41,7 +43,7 @@ const HostMetricsChart = dynamic( export function SystemStatusSection() { const { t } = useTranslations(); const fmt = useFormatters(); - const { data: status, isError } = useSystemStatus(); + const { data: status, isError, refetch, isFetching } = useSystemStatus(); return (