From eea4506f7bbdc74e2d200b58cfbbefdfa248035e Mon Sep 17 00:00:00 2001 From: Dima Arnautov Date: Fri, 28 Jan 2022 12:35:54 +0100 Subject: [PATCH] no jobs selected callout in smv --- .../application/timeseriesexplorer/timeseriesexplorer.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/ml/public/application/timeseriesexplorer/timeseriesexplorer.js b/x-pack/plugins/ml/public/application/timeseriesexplorer/timeseriesexplorer.js index d1897a28a6ecf..7f7750b904d02 100644 --- a/x-pack/plugins/ml/public/application/timeseriesexplorer/timeseriesexplorer.js +++ b/x-pack/plugins/ml/public/application/timeseriesexplorer/timeseriesexplorer.js @@ -85,6 +85,7 @@ import { aggregationTypeTransform } from '../../../common/util/anomaly_utils'; import { isMetricDetector } from './get_function_description'; import { getViewableDetectors } from './timeseriesexplorer_utils/get_viewable_detectors'; import { TimeseriesexplorerChartDataError } from './components/timeseriesexplorer_chart_data_error'; +import { ExplorerNoJobsSelected } from '../explorer/components'; // Used to indicate the chart is being plotted across // all partition field values, where the cardinality of the field cannot be @@ -974,7 +975,11 @@ export class TimeSeriesExplorer extends React.Component { const jobs = createTimeSeriesJobData(mlJobService.jobs); if (selectedDetectorIndex === undefined || mlJobService.getJob(selectedJobId) === undefined) { - return ; + return ( + + + + ); } const selectedJob = mlJobService.getJob(selectedJobId);