Skip to content

Commit

Permalink
[ML] Add date picker back onto index based data visualizer page (#75658)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
peteharverson and elasticmachine authored Aug 24, 2020
1 parent bdb73b5 commit 0f42b1a
Showing 1 changed file with 17 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import {
} from '../../../../../../../src/plugins/data/public';
import { SavedSearchSavedObject } from '../../../../common/types/kibana';
import { NavigationMenu } from '../../components/navigation_menu';
import { DatePickerWrapper } from '../../components/navigation_menu/date_picker_wrapper';
import { ML_JOB_FIELD_TYPES } from '../../../../common/constants/field_types';
import { SEARCH_QUERY_LANGUAGE } from '../../../../common/constants/search';
import { isFullLicense } from '../../license';
Expand Down Expand Up @@ -655,20 +656,24 @@ export const Page: FC = () => {
<h1>{currentIndexPattern.title}</h1>
</EuiTitle>
</EuiPageContentHeaderSection>
{currentIndexPattern.timeFieldName !== undefined && (
<EuiPageContentHeaderSection data-test-subj="mlDataVisualizerTimeRangeSelectorSection">
<FullTimeRangeSelector
indexPattern={currentIndexPattern}
query={combinedQuery}
disabled={false}
/>
</EuiPageContentHeaderSection>
)}
<EuiPageContentHeaderSection data-test-subj="mlDataVisualizerTimeRangeSelectorSection">
<EuiFlexGroup alignItems="center" justifyContent="flexEnd" gutterSize="s">
{currentIndexPattern.timeFieldName !== undefined && (
<EuiFlexItem grow={false}>
<FullTimeRangeSelector
indexPattern={currentIndexPattern}
query={combinedQuery}
disabled={false}
/>
</EuiFlexItem>
)}
<EuiFlexItem grow={false}>
<DatePickerWrapper />
</EuiFlexItem>
</EuiFlexGroup>
</EuiPageContentHeaderSection>
</EuiPageContentHeader>
</EuiFlexItem>
{showActionsPanel === true && (
<EuiFlexItem grow={false} style={{ width: wizardPanelWidth }} />
)}
</EuiFlexGroup>
<EuiSpacer size="m" />
<EuiPageContentBody>
Expand Down

0 comments on commit 0f42b1a

Please sign in to comment.