Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Stop showing indefinite backup spinner with no data

rcourtman653c8b6b5348
diff --git a/frontend-modern/src/components/Backups/Backups.tsx b/frontend-modern/src/components/Backups/Backups.tsx
index 636f4bdedc..86a606dcfe 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 (
<div class="space-y-3">
@@ -14,13 +22,7 @@ const Backups: Component = () => {
{/* Loading State */}
<Show
- when={
- connected() &&
- !(state.backups?.pve?.guestSnapshots?.length ||
- state.backups?.pve?.storageBackups?.length ||
- state.backups?.pbs?.length ||
- state.backups?.pmg?.length)
- }
+ when={connected() && !initialDataReceived() && !hasBackupData()}
>
<Card padding="lg">
<EmptyState