Skip to content

Commit

Permalink
[7.7] Show server name in Remote Cluster detail panel (#62250) (#62305)
Browse files Browse the repository at this point in the history
* Fix text size for connection status and seeds.
  • Loading branch information
cjcenizal authored Apr 2, 2020
1 parent 061248f commit a025f59
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
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

0 comments on commit a025f59

Please sign in to comment.