Gate backups spinner on initial payload only
This commit is contained in:
parent
1d214a1c61
commit
2c3f197f63
1 changed files with 1 additions and 21 deletions
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue