Gate backups spinner on initial payload only

This commit is contained in:
rcourtman 2025-11-18 16:43:02 +00:00
parent 1d214a1c61
commit 2c3f197f63

View file

@ -163,27 +163,7 @@ const UnifiedBackups: Component = () => {
};
// Check if we have any backup data yet
const isLoading = createMemo(() => {
const pve = pveBackupsState();
const pbs = pbsBackupsState();
const pmg = pmgBackupsState();
const hasData =
(pve?.guestSnapshots?.length ?? 0) > 0 ||
(pve?.storageBackups?.length ?? 0) > 0 ||
(pbs?.length ?? 0) > 0 ||
(pmg?.length ?? 0) > 0;
if (hasData) {
return false;
}
if (!connected()) {
return true;
}
if (!initialDataReceived()) {
return true;
}
const hasLastUpdate = Boolean(state.lastUpdate);
return !hasLastUpdate;
});
const isLoading = createMemo(() => !connected() || !initialDataReceived());
// Normalize all backup data into unified format
const normalizedData = createMemo(() => {