fix(ui): backup schedule shows a load error with retry, not "not configured"

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
Nick SzaunigandClaude Opus 5.5 committed 2026-10-01 12:17:56 +02:00
1 parent d57162e709
commit 0e46f666aa
1 file changed
+7
@@ -22,6 +22,7 @@ import { Button } from "@/components/ui/button";
import { Label } from "@/components/ui/label"; import { Label } from "@/components/ui/label";
import { PageHeader } from "@/components/page-header"; import { PageHeader } from "@/components/page-header";
import { ConfirmDialog } from "@/components/confirm-dialog"; import { ConfirmDialog } from "@/components/confirm-dialog";
import { ErrorState } from "@/components/query-state";
import { import {
Select, Select,
SelectContent, SelectContent,
@@ -313,6 +314,12 @@ function ScheduleSection() {
<CardContent className="flex flex-col gap-4 text-sm"> <CardContent className="flex flex-col gap-4 text-sm">
{scheduleQuery.isLoading ? ( {scheduleQuery.isLoading ? (
<p className="text-muted-foreground">Lädt…</p> <p className="text-muted-foreground">Lädt…</p>
) : scheduleQuery.isError ? (
<ErrorState
what="Zeitplan-Angaben"
onRetry={() => void scheduleQuery.refetch()}
isRetrying={scheduleQuery.isFetching}
/>
) : !status?.enabled ? ( ) : !status?.enabled ? (
<p className="text-muted-foreground"> <p className="text-muted-foreground">
Automatische Backups sind noch nicht konfiguriert - weder per Umgebungsvariable noch Automatische Backups sind noch nicht konfiguriert - weder per Umgebungsvariable noch