Skip to content

Commit

Permalink
Merge branch 'master' of github.com:elastic/kibana into feat/timeline…
Browse files Browse the repository at this point in the history
…-notes

# Conflicts:
#	x-pack/plugins/security_solution/public/timelines/components/timeline/body/helpers.tsx
  • Loading branch information
patrykkopycinski committed Dec 10, 2020
2 parents 1980e89 + 5897017 commit 8eeca9b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
EuiFlexItem,
EuiHorizontalRule,
EuiToolTip,
EuiLoadingSpinner,
} from '@elastic/eui';
import React, { useCallback, useMemo } from 'react';
import { useDispatch } from 'react-redux';
Expand Down Expand Up @@ -72,7 +73,7 @@ const NavigationComponent: React.FC<NavigationProps> = ({
timelineFullScreen,
toggleFullScreen,
}) => (
<EuiFlexGroup alignItems="flexStart" gutterSize="none">
<EuiFlexGroup alignItems="center" gutterSize="none">
<EuiFlexItem grow={false}>
<EuiButtonEmpty iconType="cross" onClick={onCloseOverlay} size="xs">
{i18n.CLOSE_ANALYZER}
Expand Down Expand Up @@ -167,15 +168,17 @@ const GraphOverlayComponent: React.FC<OwnProps> = ({ isEventViewer, timelineId }
/>
</EuiFlexItem>
</EuiFlexGroup>

<EuiHorizontalRule margin="none" />

{graphEventId !== undefined && indices !== null && (
{graphEventId !== undefined && indices !== null ? (
<StyledResolver
databaseDocumentID={graphEventId}
resolverComponentInstanceID={timelineId}
indices={indices}
/>
) : (
<EuiFlexGroup alignItems="center" justifyContent="center" style={{ height: '100%' }}>
<EuiLoadingSpinner size="xl" />
</EuiFlexGroup>
)}
</OverlayContainer>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,11 @@ const InvestigateInResolverActionComponent: React.FC<InvestigateInResolverAction
return (
<ActionIconItem
ariaLabel={i18n.ACTION_INVESTIGATE_IN_RESOLVER}
content={i18n.ACTION_INVESTIGATE_IN_RESOLVER}
content={
isDisabled ? i18n.INVESTIGATE_IN_RESOLVER_DISABLED : i18n.ACTION_INVESTIGATE_IN_RESOLVER
}
dataTestSubj="investigate-in-resolver"
iconType="node"
iconType="analyzeEvent"
isDisabled={isDisabled}
onClick={handleClick}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,10 @@ export const ACTION_INVESTIGATE_IN_RESOLVER = i18n.translate(
defaultMessage: 'Analyze event',
}
);

export const INVESTIGATE_IN_RESOLVER_DISABLED = i18n.translate(
'xpack.securitySolution.timeline.body.actions.investigateInResolverDisabledTooltip',
{
defaultMessage: 'This event cannot be analyzed since it has incompatible field mappings',
}
);

0 comments on commit 8eeca9b

Please sign in to comment.