Skip to content

Commit

Permalink
[Security Solution][Investigations] - Update timeline host and ip fie…
Browse files Browse the repository at this point in the history
…lds to be clickable (elastic#117403) (elastic#117481)

Co-authored-by: Michael Olorunnisola <[email protected]>
  • Loading branch information
kibanamachine and michaelolo24 authored Nov 4, 2021
1 parent 87186d3 commit ad09075
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const StatefulCellComponent = ({
isExpandable: true,
isExpanded: false,
isDetails: false,
isTimeline: true,
linkValues,
rowIndex: ariaRowindex - 1,
setCellProps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const DefaultCellRenderer: React.FC<CellValueElementProps> = ({
header,
isDetails,
isDraggable,
isTimeline,
linkValues,
rowRenderers,
setCellProps,
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad09075

Please sign in to comment.