mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
parent
c136143893
commit
3574a084a3
1 changed files with 18 additions and 10 deletions
|
@ -337,14 +337,22 @@ export class TimeSeriesExplorer extends React.Component {
|
|||
}
|
||||
|
||||
entityFieldValueChanged = (entity, fieldValue) => {
|
||||
this.setState(prevState => ({
|
||||
entities: prevState.entities.map(stateEntity => {
|
||||
if (stateEntity.fieldName === entity.fieldName) {
|
||||
stateEntity.fieldValue = fieldValue;
|
||||
}
|
||||
return stateEntity;
|
||||
})
|
||||
}), () => this.saveSeriesPropertiesAndRefresh());
|
||||
const { appStateHandler } = this.props;
|
||||
const { entities } = this.state;
|
||||
|
||||
const resultEntities = {
|
||||
...entities.reduce((appStateEntities, appStateEntity) => {
|
||||
appStateEntities[appStateEntity.fieldName] = appStateEntity.fieldValue;
|
||||
return appStateEntities;
|
||||
}, {}),
|
||||
[entity.fieldName]: fieldValue,
|
||||
};
|
||||
|
||||
appStateHandler(APP_STATE_ACTION.SET_ENTITIES, resultEntities);
|
||||
|
||||
this.updateControlsForDetector(() => {
|
||||
this.refresh();
|
||||
});
|
||||
};
|
||||
|
||||
loadAnomaliesTableData = (earliestMs, latestMs) => {
|
||||
|
@ -1090,11 +1098,11 @@ export class TimeSeriesExplorer extends React.Component {
|
|||
/>
|
||||
)}
|
||||
|
||||
{(jobs.length > 0 && (fullRefresh === false || loading === false) && hasResults === false) && (
|
||||
{(jobs.length > 0 && loading === false && hasResults === false) && (
|
||||
<TimeseriesexplorerNoChartData dataNotChartable={dataNotChartable} entities={entities} />
|
||||
)}
|
||||
|
||||
{(jobs.length > 0 && (fullRefresh === false || loading === false) && hasResults === true) && (
|
||||
{(jobs.length > 0 && loading === false && hasResults === true) && (
|
||||
<EuiText className="results-container">
|
||||
<span className="panel-title">
|
||||
{i18n.translate('xpack.ml.timeSeriesExplorer.singleTimeSeriesAnalysisTitle', {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue