Skip to content

Commit

Permalink
Include Elasticsearch node into screen reader message, per review fee…
Browse files Browse the repository at this point in the history
…dback
  • Loading branch information
cachedout committed Dec 27, 2019
1 parent 8cb71f0 commit 9e8b05e
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ import { NodeDetailStatus } from '../node_detail_status';
import { Logs } from '../../logs/';
import { MonitoringTimeseriesContainer } from '../../chart';
import { ShardAllocation } from '../shard_allocation/shard_allocation';
import { FormattedMessage } from '@kbn/i18n/react';
import { FormattedMessage } from '@kbn/i18n/react';

function formatScreenReaderMsg(msg, nodeSummary) {
return msg + ' ' + nodeSummary.name;
}

export const Node = ({
nodeSummary,
Expand All @@ -40,15 +44,14 @@ export const Node = ({
metrics.node_latency,
metrics.node_segment_count,
];

return (
<EuiPage>
<EuiPageBody>
<EuiScreenReaderOnly>
<h1>
<FormattedMessage
id="xpack.monitoring.elasticsearch.node.heading"
defaultMessage="Elasticsearch node"
defaultMessage={formatScreenReaderMsg('Elasticsearch node', nodeSummary)}
/>
</h1>
</EuiScreenReaderOnly>
Expand Down

0 comments on commit 9e8b05e

Please sign in to comment.