Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog/unreleased/pr-25566 copy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type = "f"
message = "fix: cluster configuration leader column empty"

issues = ["Graylog2/graylog-plugin-enterprise#13633"]
pulls = ["25575"]
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import ProcessingStateCell from './cells/ProcessingStateCell';
import ThroughputMetricsCell from './cells/ThroughputMetricsCell';

import CpuMetricsCell from '../shared-components/CpuMetricsCell';
import { SecondaryText } from '../shared-components/NodeMetricsLayout';
import { SecondaryText, StyledLabel } from '../shared-components/NodeMetricsLayout';
import SizeAndRatioMetric from '../shared-components/SizeAndRatioMetric';

const JOURNAL_WARNING_THRESHOLD = 0.1;
Expand Down Expand Up @@ -66,6 +66,14 @@ export const createColumnRenderers = (): ColumnRenderers<GraylogNode> => ({
renderCell: (_value, entity) => <HostnameCell node={entity} />,
minWidth: 300,
},
is_leader: {
renderCell: (isLeader: boolean) => (
<SecondaryText>
{isLeader ? <StyledLabel bsSize="xs">Leader</StyledLabel> : <span>-</span>}
</SecondaryText>
),
staticWidth: 'matchHeader',
},
version: {
renderCell: (_value, entity) => (
<SecondaryText>
Expand Down
Loading