mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-23 03:33:53 +00:00
fix: prevent VM/container counts from zeroing when node is selected
- NodeSummaryTable now always uses unfiltered state data for counts - This ensures all nodes show correct counts even when one is selected - The parent component handles filtering for the main display separately
This commit is contained in:
@@ -81,9 +81,9 @@ export const UnifiedNodeSelector: Component<UnifiedNodeSelectorProps> = (props)
|
||||
<NodeSummaryTable
|
||||
nodes={nodes()}
|
||||
pbsInstances={props.currentTab === 'backups' ? state.pbs : undefined}
|
||||
vms={props.filteredVms !== undefined ? props.filteredVms : state.vms}
|
||||
containers={props.filteredContainers !== undefined ? props.filteredContainers : state.containers}
|
||||
storage={props.filteredStorage !== undefined ? props.filteredStorage : state.storage}
|
||||
vms={state.vms} // Always use unfiltered data for counts
|
||||
containers={state.containers} // Always use unfiltered data for counts
|
||||
storage={state.storage} // Always use unfiltered data for counts
|
||||
backupCounts={backupCounts()}
|
||||
currentTab={props.currentTab}
|
||||
selectedNode={selectedNode()}
|
||||
|
||||
Reference in New Issue
Block a user