Skip to content

Commit daa2998

Browse files
- fix test
1 parent bc795ac commit daa2998

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

x-pack/plugins/security_solution/public/timelines/components/flyout/bottom_bar/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ import { IS_DRAGGING_CLASS_NAME } from '../../../../common/components/drag_and_d
1313
import { DataProvider } from '../../timeline/data_providers/data_provider';
1414
import { flattenIntoAndGroups } from '../../timeline/data_providers/helpers';
1515
import { DataProviders } from '../../timeline/data_providers';
16+
import { FLYOUT_BUTTON_BAR_CLASS_NAME, FLYOUT_BUTTON_CLASS_NAME } from '../../timeline/helpers';
1617
import { FlyoutHeaderPanel } from '../header';
1718
import { 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-
2220
export const getBadgeCount = (dataProviders: DataProvider[]): number =>
2321
flattenIntoAndGroups(dataProviders).reduce((total, group) => total + group.length, 0);
2422

x-pack/plugins/security_solution/public/timelines/components/flyout/header/active_timelines.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ import { FormattedRelative } from '@kbn/i18n/react';
1313

1414
import { TimelineStatus, TimelineType } from '../../../../../common/types/timeline';
1515
import { 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';
1720
import { UNTITLED_TIMELINE, UNTITLED_TEMPLATE } from '../../timeline/properties/translations';
1821
import { timelineActions } from '../../../store/timeline';
1922
import * as i18n from './translations';
2023

21-
export const ACTIVE_TIMELINE_BUTTON_CLASS_NAME = 'active-timeline-button';
22-
2324
const ButtonWrapper = styled(EuiFlexItem)`
2425
flex-direction: row;
2526
align-items: center;

x-pack/plugins/security_solution/public/timelines/components/timeline/helpers.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ import {
2323
EXISTS_OPERATOR,
2424
} from './data_providers/data_provider';
2525
import { 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';
2826
import {
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

0 commit comments

Comments
 (0)