diff --git a/x-pack/plugins/security_solution/public/common/components/events_viewer/index.tsx b/x-pack/plugins/security_solution/public/common/components/events_viewer/index.tsx index b3948681c491c..08f884007aeec 100644 --- a/x-pack/plugins/security_solution/public/common/components/events_viewer/index.tsx +++ b/x-pack/plugins/security_solution/public/common/components/events_viewer/index.tsx @@ -212,6 +212,7 @@ const StatefulEventsViewerComponent: React.FC = ({ dataProviders, dataViewId, defaultCellActions, + visibleCellActions: 3, deletedEventIds, disabledCellActions: FIELDS_WITHOUT_CELL_ACTIONS, docValueFields, diff --git a/x-pack/plugins/timelines/public/components/t_grid/body/index.tsx b/x-pack/plugins/timelines/public/components/t_grid/body/index.tsx index 36c1cafafcf96..f245292ec8dc0 100644 --- a/x-pack/plugins/timelines/public/components/t_grid/body/index.tsx +++ b/x-pack/plugins/timelines/public/components/t_grid/body/index.tsx @@ -92,6 +92,7 @@ interface OwnProps { bulkActions?: BulkActionsProp; data: TimelineItem[]; defaultCellActions?: TGridCellAction[]; + visibleCellActions?: number; disabledCellActions: string[]; fieldBrowserOptions?: FieldBrowserOptions; filters?: Filter[]; @@ -307,6 +308,7 @@ export const BodyComponent = React.memo( columnHeaders, data, defaultCellActions, + visibleCellActions, disabledCellActions, fieldBrowserOptions, filterQuery, @@ -716,6 +718,7 @@ export const BodyComponent = React.memo( cellActions: header.tGridCellActions?.map(buildAction) ?? defaultCellActions?.map(buildAction), + visibleCellActions, } : {}), }; @@ -725,6 +728,7 @@ export const BodyComponent = React.memo( columnHeaders, data, defaultCellActions, + visibleCellActions, disabledCellActions, dispatch, id, diff --git a/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx b/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx index 6f74fd1d2cb37..2e236197697fa 100644 --- a/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx +++ b/x-pack/plugins/timelines/public/components/t_grid/integrated/index.tsx @@ -103,6 +103,7 @@ export interface TGridIntegratedProps { dataProviders: DataProvider[]; dataViewId?: string | null; defaultCellActions?: TGridCellAction[]; + visibleCellActions?: number; deletedEventIds: Readonly; disabledCellActions: string[]; docValueFields: DocValueFields[]; @@ -149,6 +150,7 @@ const TGridIntegratedComponent: React.FC = ({ dataProviders, dataViewId = null, defaultCellActions, + visibleCellActions, deletedEventIds, disabledCellActions, docValueFields, @@ -366,6 +368,7 @@ const TGridIntegratedComponent: React.FC = ({ bulkActions={bulkActions} data={nonDeletedEvents} defaultCellActions={defaultCellActions} + visibleCellActions={visibleCellActions} disabledCellActions={disabledCellActions} fieldBrowserOptions={fieldBrowserOptions} filterQuery={filterQuery} diff --git a/x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx b/x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx index be71d159eafca..ba29dd60191f1 100644 --- a/x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx +++ b/x-pack/plugins/timelines/public/components/t_grid/standalone/index.tsx @@ -79,6 +79,7 @@ export interface TGridStandaloneProps { columns: ColumnHeaderOptions[]; dataViewId?: string | null; defaultCellActions?: TGridCellAction[]; + visibleCellActions?: number; deletedEventIds: Readonly; disabledCellActions: string[]; end: string; @@ -120,6 +121,7 @@ const TGridStandaloneComponent: React.FC = ({ columns, dataViewId = null, defaultCellActions, + visibleCellActions, deletedEventIds, disabledCellActions, end, @@ -361,6 +363,7 @@ const TGridStandaloneComponent: React.FC = ({ browserFields={browserFields} data={nonDeletedEvents} defaultCellActions={defaultCellActions} + visibleCellActions={visibleCellActions} disabledCellActions={disabledCellActions} filterQuery={filterQuery} hasAlertsCrud={hasAlertsCrud}