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.

Tie backup loading state to initial data flag

rcourtman398e9ee653b1
diff --git a/frontend-modern/src/components/Backups/UnifiedBackups.tsx b/frontend-modern/src/components/Backups/UnifiedBackups.tsx
index 98d5c9f89b..fed7fb2244 100644
--- a/frontend-modern/src/components/Backups/UnifiedBackups.tsx
+++ b/frontend-modern/src/components/Backups/UnifiedBackups.tsx
@@ -50,7 +50,7 @@ interface DateGroup {
const UnifiedBackups: Component = () => {
const navigate = useNavigate();
- const { state, connected } = useWebSocket();
+ const { state, connected, initialDataReceived } = useWebSocket();
const pveBackupsState = createMemo(() => state.backups?.pve ?? state.pveBackups);
const pbsBackupsState = createMemo(() => state.backups?.pbs ?? state.pbsBackups);
const pmgBackupsState = createMemo(() => state.backups?.pmg ?? state.pmgBackups);
@@ -178,8 +178,11 @@ const UnifiedBackups: Component = () => {
if (!connected()) {
return true;
}
- const lastUpdate = state.lastUpdate;
- return !lastUpdate;
+ if (!initialDataReceived()) {
+ return true;
+ }
+ const hasLastUpdate = Boolean(state.lastUpdate);
+ return !hasLastUpdate;
});
// Normalize all backup data into unified format