Skip to content

Commit

Permalink
Removed references to leader datanodes in UI (#19324)
Browse files Browse the repository at this point in the history
  • Loading branch information
todvora committed May 13, 2024
1 parent 5ac17ed commit 9482f45
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Expand Up @@ -49,7 +49,6 @@ const columnDefinitions = [
{ id: 'hostname', title: 'Name', sortable: true, permissions: [] },
{ id: 'transport_address', title: 'Transport address' },
{ id: 'status', title: 'Status', sortable: false },
{ id: 'is_leader', title: 'Is leader', sortable: true },
{ id: 'cert_valid_until', title: 'Certificate valid until', sortable: false },
];

Expand Down
9 changes: 0 additions & 9 deletions graylog2-web-interface/src/pages/DataNodePage.tsx
Expand Up @@ -24,7 +24,6 @@ import DocsHelper from 'util/DocsHelper';
import { Row, Col, Label } from 'components/bootstrap';
import { DocumentTitle, NoSearchResult, PageHeader, RelativeTime, Spinner } from 'components/common';
import { CertRenewalButton } from 'components/datanode/DataNodeConfiguration/CertificateRenewal';
import Icon from 'components/common/Icon';
import useDataNode from 'components/datanode/hooks/useDataNode';
import DataNodeActions from 'components/datanode/DataNodeList/DataNodeActions';

Expand All @@ -51,12 +50,6 @@ const StatusLabel = styled(Label)`
justify-content: center;
gap: 4px;
`;
const BooleanIcon = styled(Icon)<{ value: boolean }>(({ theme, value }) => css`
color: ${value ? theme.colors.variant.success : theme.colors.variant.danger};
`);
const BooleanValue = ({ value }: { value: boolean }) => (
<><BooleanIcon name={value ? 'check_circle' : 'cancel'} value={value} /> {value ? 'yes' : 'no'}</>
);

const ActionsCol = styled(Col)`
text-align: right;
Expand Down Expand Up @@ -103,8 +96,6 @@ const DataNodePage = () => {
{datanode.data_node_status || 'N/A'}
</StatusLabel>
</dd>
<dt>Is leader:</dt>
<dd><BooleanValue value={datanode.is_leader} /></dd>
<dt>Certificate valid until:</dt>
<dd><RelativeTime dateTime={datanode.cert_valid_until} /> <CertRenewalButton nodeId={datanode.node_id} status={datanode.status} /></dd>
</StyledHorizontalDl>
Expand Down

0 comments on commit 9482f45

Please sign in to comment.