mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-23 12:35:06 +00:00
Aggregate cluster source badge across attached agents
The Infrastructure connected-systems table hardcoded the cluster header row's source to 'api', so a PVE cluster whose nodes all carry agents displayed as 'API' while a standalone PVE host with the same setup correctly displayed as 'API + Agent'. The backend already folds member agents into ConnectionSystem.Components as attachments (connections_grouping.go), so the row builder can use the same sourceFor() aggregation it uses for non-cluster rows.
This commit is contained in:
parent
9f43a22fb1
commit
112d42801a
1 changed files with 1 additions and 1 deletions
|
|
@ -253,7 +253,7 @@ const buildRow = (
|
|||
const coverageLabels = isCluster
|
||||
? coverageLabelsFor(componentConnections).filter((label) => label !== hostTelemetryLabel)
|
||||
: coverageLabelsFor(componentConnections);
|
||||
const source: InfrastructureSourceKind = isCluster ? 'api' : sourceFor(componentConnections);
|
||||
const source: InfrastructureSourceKind = sourceFor(componentConnections);
|
||||
const subtitle = isCluster
|
||||
? `Cluster · ${members.length} ${members.length === 1 ? 'node' : 'nodes'}`
|
||||
: subtitleFor(componentConnections, primaryConnection);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue