File tree Expand file tree Collapse file tree
x-pack/plugins/security_solution/public/timelines/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,12 +13,10 @@ import { IS_DRAGGING_CLASS_NAME } from '../../../../common/components/drag_and_d
1313import { DataProvider } from '../../timeline/data_providers/data_provider' ;
1414import { flattenIntoAndGroups } from '../../timeline/data_providers/helpers' ;
1515import { DataProviders } from '../../timeline/data_providers' ;
16+ import { FLYOUT_BUTTON_BAR_CLASS_NAME , FLYOUT_BUTTON_CLASS_NAME } from '../../timeline/helpers' ;
1617import { FlyoutHeaderPanel } from '../header' ;
1718import { TimelineTabs } from '../../../../../common/types/timeline' ;
1819
19- export const FLYOUT_BUTTON_BAR_CLASS_NAME = 'timeline-flyout-button-bar' ;
20- export const FLYOUT_BUTTON_CLASS_NAME = 'timeline-flyout-button' ;
21-
2220export const getBadgeCount = ( dataProviders : DataProvider [ ] ) : number =>
2321 flattenIntoAndGroups ( dataProviders ) . reduce ( ( total , group ) => total + group . length , 0 ) ;
2422
Original file line number Diff line number Diff line change @@ -13,13 +13,14 @@ import { FormattedRelative } from '@kbn/i18n/react';
1313
1414import { TimelineStatus , TimelineType } from '../../../../../common/types/timeline' ;
1515import { TimelineEventsCountBadge } from '../../../../common/hooks/use_timeline_events_count' ;
16- import { focusActiveTimelineButton } from '../../timeline/helpers' ;
16+ import {
17+ ACTIVE_TIMELINE_BUTTON_CLASS_NAME ,
18+ focusActiveTimelineButton ,
19+ } from '../../timeline/helpers' ;
1720import { UNTITLED_TIMELINE , UNTITLED_TEMPLATE } from '../../timeline/properties/translations' ;
1821import { timelineActions } from '../../../store/timeline' ;
1922import * as i18n from './translations' ;
2023
21- export const ACTIVE_TIMELINE_BUTTON_CLASS_NAME = 'active-timeline-button' ;
22-
2324const ButtonWrapper = styled ( EuiFlexItem ) `
2425 flex-direction: row;
2526 align-items: center;
Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ import {
2323 EXISTS_OPERATOR ,
2424} from './data_providers/data_provider' ;
2525import { BrowserFields } from '../../../common/containers/source' ;
26- import { FLYOUT_BUTTON_BAR_CLASS_NAME } from '../flyout/bottom_bar' ;
27- import { ACTIVE_TIMELINE_BUTTON_CLASS_NAME } from '../flyout/header/active_timelines' ;
2826import {
2927 IIndexPattern ,
3028 Query ,
@@ -245,6 +243,10 @@ export const onTimelineTabKeyPressed = ({
245243 }
246244} ;
247245
246+ export const ACTIVE_TIMELINE_BUTTON_CLASS_NAME = 'active-timeline-button' ;
247+ export const FLYOUT_BUTTON_BAR_CLASS_NAME = 'timeline-flyout-button-bar' ;
248+ export const FLYOUT_BUTTON_CLASS_NAME = 'timeline-flyout-button' ;
249+
248250/**
249251 * This function focuses the active timeline button on the next tick. Focus
250252 * is updated on the next tick because this function is typically
You can’t perform that action at this time.
0 commit comments