Skip to content

Commit

Permalink
[ML] add spacer
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Oct 26, 2020
1 parent d548e7d commit d1ed8fb
Showing 1 changed file with 19 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1133,22 +1133,25 @@ export class TimeSeriesExplorer extends React.Component {
return (
<TimeSeriesExplorerPage dateFormatTz={dateFormatTz} resizeRef={this.resizeRef}>
{fieldNamesWithEmptyValues.length > 0 && (
<EuiCallOut
title={
<FormattedMessage
id="xpack.ml.timeSeriesExplorer.singleMetricRequiredMessage"
defaultMessage="To view a single metric you must select {missingValuesCount, plural, one {a value for {fieldName1}} other {values for {fieldName1} and {fieldName2}}}"
values={{
missingValuesCount: fieldNamesWithEmptyValues.length,
fieldName1: fieldNamesWithEmptyValues[0],
fieldName2: fieldNamesWithEmptyValues[1],
}}
/>
}
color="warning"
iconType="help"
size="s"
/>
<>
<EuiCallOut
title={
<FormattedMessage
id="xpack.ml.timeSeriesExplorer.singleMetricRequiredMessage"
defaultMessage="To view a single metric you must select {missingValuesCount, plural, one {a value for {fieldName1}} other {values for {fieldName1} and {fieldName2}}}"
values={{
missingValuesCount: fieldNamesWithEmptyValues.length,
fieldName1: fieldNamesWithEmptyValues[0],
fieldName2: fieldNamesWithEmptyValues[1],
}}
/>
}
color="warning"
iconType="help"
size="s"
/>
<EuiSpacer size="m" />
</>
)}

<div className="series-controls" data-test-subj="mlSingleMetricViewerSeriesControls">
Expand Down

0 comments on commit d1ed8fb

Please sign in to comment.