mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[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:
parent
e620fec087
commit
6075ef33d2
3 changed files with 4 additions and 1 deletions
|
@ -51,6 +51,7 @@ const StatefulCellComponent = ({
|
|||
isExpandable: true,
|
||||
isExpanded: false,
|
||||
isDetails: false,
|
||||
isTimeline: true,
|
||||
linkValues,
|
||||
rowIndex: ariaRowindex - 1,
|
||||
setCellProps,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue