From 1d214a1c61c4fcc92da0be08a021a78ae2c1b267 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Tue, 18 Nov 2025 16:37:10 +0000 Subject: [PATCH] Stop showing indefinite backup spinner with no data --- .../src/components/Backups/Backups.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/frontend-modern/src/components/Backups/Backups.tsx b/frontend-modern/src/components/Backups/Backups.tsx index 636f4bd..86a606d 100644 --- a/frontend-modern/src/components/Backups/Backups.tsx +++ b/frontend-modern/src/components/Backups/Backups.tsx @@ -6,7 +6,15 @@ import UnifiedBackups from './UnifiedBackups'; import { ProxmoxSectionNav } from '@/components/Proxmox/ProxmoxSectionNav'; const Backups: Component = () => { - const { state, connected } = useWebSocket(); + const { state, connected, initialDataReceived } = useWebSocket(); + + const hasBackupData = () => + Boolean( + state.backups?.pve?.guestSnapshots?.length || + state.backups?.pve?.storageBackups?.length || + state.backups?.pbs?.length || + state.backups?.pmg?.length, + ); return (
@@ -14,13 +22,7 @@ const Backups: Component = () => { {/* Loading State */}