[Security Solution][Investigations] - Update timeline host and ip fields to be clickable (#117403) (#117480)

Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
This commit is contained in:
Kibana Machine 2021-11-04 08:44:59 -04:00 committed by GitHub
parent e620fec087
commit 6075ef33d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View file

@ -51,6 +51,7 @@ const StatefulCellComponent = ({
isExpandable: true,
isExpanded: false,
isDetails: false,
isTimeline: true,
linkValues,
rowIndex: ariaRowindex - 1,
setCellProps,

View file

@ -32,6 +32,7 @@ export const DefaultCellRenderer: React.FC<CellValueElementProps> = ({
header,
isDetails,
isDraggable,
isTimeline,
linkValues,
rowRenderers,
setCellProps,
@ -49,7 +50,7 @@ export const DefaultCellRenderer: React.FC<CellValueElementProps> = ({
<>
<StyledContent className={styledContentClassName} $isDetails={isDetails}>
{getColumnRenderer(header.id, columnRenderers, data).renderColumn({
asPlainText: !!getLink(header.id, header.type), // we want to render value with links as plain text but keep other formatters like badge.
asPlainText: !!getLink(header.id, header.type) && !isTimeline, // we want to render value with links as plain text but keep other formatters like badge.
browserFields,
columnName: header.id,
ecsData,

View file

@ -23,6 +23,7 @@ export type CellValueElementProps = EuiDataGridCellValueElementProps & {
globalFilters?: Filter[];
header: ColumnHeaderOptions;
isDraggable: boolean;
isTimeline?: boolean; // Default cell renderer is used for both the alert table and timeline. This allows us to cheaply separate concerns
linkValues: string[] | undefined;
rowRenderers?: RowRenderer[];
// eslint-disable-next-line @typescript-eslint/no-explicit-any