Skip to content

Commit

Permalink
addressing PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Aug 31, 2020
1 parent 4235784 commit 8394800
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ export function TransactionCharts({
responseTimeSeries
);

function onToggleLegend(disabledSeriesStates: boolean[]) {
setDisabledSeriesState(disabledSeriesStates);
}

return (
<>
<EuiFlexGrid columns={2} gutterSize="s">
Expand All @@ -96,7 +92,7 @@ export function TransactionCharts({
series={responseTimeSeries}
tickFormatY={getResponseTimeTickFormatter(formatter)}
formatTooltipValue={getResponseTimeTooltipFormatter(formatter)}
onToggleLegend={onToggleLegend}
onToggleLegend={setDisabledSeriesState}
/>
</React.Fragment>
</EuiPanel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ export function MLHeader({ hasValidMlLicense, mlJobId }: Props) {
aria-label="Warning"
type="alert"
color="warning"
content="The Machine learning results are hidden when the search bar is used for filtering"
content={i18n.translate(
'xpack.apm.metrics.transactionChart.machineLearningTooltip.withKuery',
{
defaultMessage:
'The Machine learning results are hidden when the search bar is used for filtering',
}
)}
/>
) : (
<EuiIconTip
Expand Down

0 comments on commit 8394800

Please sign in to comment.