Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.7] Show server name in Remote Cluster detail panel (#62250) #62305

Merged
merged 1 commit into from
Apr 2, 2020
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
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function ConnectionStatus({ isConnected, mode }) {
<EuiFlexItem grow={false}>{icon}</EuiFlexItem>

<EuiFlexItem className="remoteClustersConnectionStatus__message">
<EuiText>{message}</EuiText>
<EuiText size="s">{message}</EuiText>
</EuiFlexItem>
</EuiFlexGroup>
</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ export class DetailPanel extends Component {

<EuiDescriptionListDescription data-test-subj="remoteClusterDetailSeeds">
{seeds.map(seed => (
<EuiText key={seed}>{seed}</EuiText>
<EuiText size="s" key={seed}>
{seed}
</EuiText>
))}
</EuiDescriptionListDescription>
</EuiFlexItem>
Expand Down Expand Up @@ -296,6 +298,7 @@ export class DetailPanel extends Component {
proxySocketConnections,
connectedSocketsCount,
mode,
serverName,
}) {
return (
<EuiDescriptionList data-test-subj="remoteClusterDetailPanelStatusValues">
Expand Down Expand Up @@ -398,6 +401,25 @@ export class DetailPanel extends Component {
</EuiDescriptionListDescription>
</EuiFlexItem>
</EuiFlexGroup>

<EuiSpacer size="s" />

<EuiFlexGroup>
<EuiFlexItem>
<EuiDescriptionListTitle>
<EuiTitle size="xs">
<FormattedMessage
id="xpack.remoteClusters.detailPanel.serverNameLabel"
defaultMessage="Server name"
/>
</EuiTitle>
</EuiDescriptionListTitle>

<EuiDescriptionListDescription data-test-subj="remoteClusterDetailServerName">
{serverName ? serverName : '-'}
</EuiDescriptionListDescription>
</EuiFlexItem>
</EuiFlexGroup>
</EuiDescriptionList>
);
}
Expand Down