Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
fix: Add reconnect button to Backups and Replication pages
rcourtman272d582262c3
diff --git a/frontend-modern/src/components/Backups/Backups.tsx b/frontend-modern/src/components/Backups/Backups.tsxindex 86a606dcfe..da0ea9ae17 100644--- a/frontend-modern/src/components/Backups/Backups.tsx+++ b/frontend-modern/src/components/Backups/Backups.tsx@@ -6,7 +6,7 @@ import UnifiedBackups from './UnifiedBackups';import { ProxmoxSectionNav } from '@/components/Proxmox/ProxmoxSectionNav';const Backups: Component = () => {- const { state, connected, initialDataReceived } = useWebSocket();+ const { state, connected, initialDataReceived, reconnecting, reconnect } = useWebSocket();const hasBackupData = () =>Boolean(@@ -75,8 +75,22 @@ const Backups: Component = () => {</svg>}title="Connection lost"- description="Unable to connect to the backend server. Attempting to reconnect..."+ description={+ reconnecting()+ ? 'Attempting to reconnect…'+ : 'Unable to connect to the backend server'+ }tone="danger"+ actions={+ !reconnecting() ? (+ <button+ onClick={() => reconnect()}+ class="mt-2 inline-flex items-center px-4 py-2 text-xs font-medium rounded bg-red-600 text-white hover:bg-red-700 transition-colors"+ >+ Reconnect now+ </button>+ ) : undefined+ }/></Card></Show>diff --git a/frontend-modern/src/components/Replication/Replication.tsx b/frontend-modern/src/components/Replication/Replication.tsxindex 88eef06c91..f5b69ad5d9 100644--- a/frontend-modern/src/components/Replication/Replication.tsx+++ b/frontend-modern/src/components/Replication/Replication.tsx@@ -33,7 +33,7 @@ function formatRate(limit?: number): string {}const Replication: Component = () => {- const { state, connected } = useWebSocket();+ const { state, connected, reconnecting, reconnect } = useWebSocket();const replicationJobs = createMemo(() => {const jobs = state.replicationJobs ?? [];@@ -59,8 +59,22 @@ const Replication: Component = () => {</svg>}title="Connection lost"- description="Unable to connect to the backend server. Attempting to reconnect..."+ description={+ reconnecting()+ ? 'Attempting to reconnect…'+ : 'Unable to connect to the backend server'+ }tone="danger"+ actions={+ !reconnecting() ? (+ <button+ onClick={() => reconnect()}+ class="mt-2 inline-flex items-center px-4 py-2 text-xs font-medium rounded bg-red-600 text-white hover:bg-red-700 transition-colors"+ >+ Reconnect now+ </button>+ ) : undefined+ }/></Card>}>