mirror of
https://github.com/elastic/kibana.git
synced 2025-04-20 16:03:20 -04:00
[Security/Timeline] Update Timeline datagrid to accept/pass visibleCellActions
prop
+ update Security to show 3 visible cell actions
This commit is contained in:
parent
86b4a0f9c0
commit
793d208f0f
4 changed files with 11 additions and 0 deletions
|
@ -212,6 +212,7 @@ const StatefulEventsViewerComponent: React.FC<Props> = ({
|
|||
dataProviders,
|
||||
dataViewId,
|
||||
defaultCellActions,
|
||||
visibleCellActions: 3,
|
||||
deletedEventIds,
|
||||
disabledCellActions: FIELDS_WITHOUT_CELL_ACTIONS,
|
||||
docValueFields,
|
||||
|
|
|
@ -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<StatefulBodyProps>(
|
|||
columnHeaders,
|
||||
data,
|
||||
defaultCellActions,
|
||||
visibleCellActions,
|
||||
disabledCellActions,
|
||||
fieldBrowserOptions,
|
||||
filterQuery,
|
||||
|
@ -716,6 +718,7 @@ export const BodyComponent = React.memo<StatefulBodyProps>(
|
|||
cellActions:
|
||||
header.tGridCellActions?.map(buildAction) ??
|
||||
defaultCellActions?.map(buildAction),
|
||||
visibleCellActions,
|
||||
}
|
||||
: {}),
|
||||
};
|
||||
|
@ -725,6 +728,7 @@ export const BodyComponent = React.memo<StatefulBodyProps>(
|
|||
columnHeaders,
|
||||
data,
|
||||
defaultCellActions,
|
||||
visibleCellActions,
|
||||
disabledCellActions,
|
||||
dispatch,
|
||||
id,
|
||||
|
|
|
@ -103,6 +103,7 @@ export interface TGridIntegratedProps {
|
|||
dataProviders: DataProvider[];
|
||||
dataViewId?: string | null;
|
||||
defaultCellActions?: TGridCellAction[];
|
||||
visibleCellActions?: number;
|
||||
deletedEventIds: Readonly<string[]>;
|
||||
disabledCellActions: string[];
|
||||
docValueFields: DocValueFields[];
|
||||
|
@ -149,6 +150,7 @@ const TGridIntegratedComponent: React.FC<TGridIntegratedProps> = ({
|
|||
dataProviders,
|
||||
dataViewId = null,
|
||||
defaultCellActions,
|
||||
visibleCellActions,
|
||||
deletedEventIds,
|
||||
disabledCellActions,
|
||||
docValueFields,
|
||||
|
@ -366,6 +368,7 @@ const TGridIntegratedComponent: React.FC<TGridIntegratedProps> = ({
|
|||
bulkActions={bulkActions}
|
||||
data={nonDeletedEvents}
|
||||
defaultCellActions={defaultCellActions}
|
||||
visibleCellActions={visibleCellActions}
|
||||
disabledCellActions={disabledCellActions}
|
||||
fieldBrowserOptions={fieldBrowserOptions}
|
||||
filterQuery={filterQuery}
|
||||
|
|
|
@ -79,6 +79,7 @@ export interface TGridStandaloneProps {
|
|||
columns: ColumnHeaderOptions[];
|
||||
dataViewId?: string | null;
|
||||
defaultCellActions?: TGridCellAction[];
|
||||
visibleCellActions?: number;
|
||||
deletedEventIds: Readonly<string[]>;
|
||||
disabledCellActions: string[];
|
||||
end: string;
|
||||
|
@ -120,6 +121,7 @@ const TGridStandaloneComponent: React.FC<TGridStandaloneProps> = ({
|
|||
columns,
|
||||
dataViewId = null,
|
||||
defaultCellActions,
|
||||
visibleCellActions,
|
||||
deletedEventIds,
|
||||
disabledCellActions,
|
||||
end,
|
||||
|
@ -361,6 +363,7 @@ const TGridStandaloneComponent: React.FC<TGridStandaloneProps> = ({
|
|||
browserFields={browserFields}
|
||||
data={nonDeletedEvents}
|
||||
defaultCellActions={defaultCellActions}
|
||||
visibleCellActions={visibleCellActions}
|
||||
disabledCellActions={disabledCellActions}
|
||||
filterQuery={filterQuery}
|
||||
hasAlertsCrud={hasAlertsCrud}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue