Skip to content

Commit

Permalink
Addressed feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
igoristic committed Dec 20, 2019
1 parent 332d1c8 commit 38351fb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,17 @@ const logLevelText = {
fatal: i18n.translate('xpack.monitoring.cluster.overview.esPanel.fatalLogsTooltipText', {
defaultMessage: 'The number of fatal logs',
}),
unknown: i18n.translate('xpack.monitoring.cluster.overview.esPanel.unknownLogsTooltipText', {
defaultMessage: 'Unknown',
}),
};

function renderLog(log) {
return (
<EuiFlexGroup wrap responsive={false} gutterSize="xs">
{log.levels.map((level, index) => (
<EuiFlexItem grow={false} key={index}>
<EuiToolTip position="top" content={logLevelText[level.level] || logLevelText.info}>
<EuiToolTip position="top" content={logLevelText[level.level] || logLevelText.unknown}>
<EuiBadge color={getBadgeColorFromLogLevel(level.level)}>
{formatNumber(level.count, 'int_commas')}
</EuiBadge>
Expand Down

0 comments on commit 38351fb

Please sign in to comment.