mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Security Solution][Document Flyout] Fix toggle column missing in timeline (#200647)
## Summary Related: https://github.com/elastic/kibana/issues/200046 Reenabling toggle columns for events. It was mistakenly excluded in [this refactor](https://github.com/elastic/kibana/pull/190560/files#diff-d9edcdb9ad0f231269f791e8392d2d0fe1d10105c223c89d9f86e546972bc342) 
This commit is contained in:
parent
7ace26213d
commit
467d7370ad
1 changed files with 2 additions and 8 deletions
|
@ -9,7 +9,6 @@ import type { FC } from 'react';
|
|||
import React, { useMemo } from 'react';
|
||||
import { useDocumentDetailsContext } from '../context';
|
||||
import { getSourcererScopeId } from '../../../../helpers';
|
||||
import { useBasicDataFromDetailsData } from '../hooks/use_basic_data_from_details_data';
|
||||
import { SecurityCellActionType } from '../../../../app/actions/constants';
|
||||
import {
|
||||
CellActionsMode,
|
||||
|
@ -40,12 +39,7 @@ interface CellActionsProps {
|
|||
* Security cell action wrapper for document details flyout
|
||||
*/
|
||||
export const CellActions: FC<CellActionsProps> = ({ field, value, isObjectArray, children }) => {
|
||||
const { dataFormattedForFieldBrowser, scopeId, isPreview } = useDocumentDetailsContext();
|
||||
const { isAlert } = useBasicDataFromDetailsData(dataFormattedForFieldBrowser);
|
||||
|
||||
const triggerId = isAlert
|
||||
? SecurityCellActionsTrigger.DETAILS_FLYOUT
|
||||
: SecurityCellActionsTrigger.DEFAULT;
|
||||
const { scopeId, isPreview } = useDocumentDetailsContext();
|
||||
|
||||
const data = useMemo(() => ({ field, value }), [field, value]);
|
||||
const metadata = useMemo(() => ({ scopeId, isObjectArray }), [scopeId, isObjectArray]);
|
||||
|
@ -58,7 +52,7 @@ export const CellActions: FC<CellActionsProps> = ({ field, value, isObjectArray,
|
|||
<SecurityCellActions
|
||||
data={data}
|
||||
mode={CellActionsMode.HOVER_DOWN}
|
||||
triggerId={triggerId}
|
||||
triggerId={SecurityCellActionsTrigger.DETAILS_FLYOUT}
|
||||
visibleCellActions={6}
|
||||
sourcererScopeId={getSourcererScopeId(scopeId)}
|
||||
metadata={metadata}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue