mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -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,
|
dataProviders,
|
||||||
dataViewId,
|
dataViewId,
|
||||||
defaultCellActions,
|
defaultCellActions,
|
||||||
|
visibleCellActions: 3,
|
||||||
deletedEventIds,
|
deletedEventIds,
|
||||||
disabledCellActions: FIELDS_WITHOUT_CELL_ACTIONS,
|
disabledCellActions: FIELDS_WITHOUT_CELL_ACTIONS,
|
||||||
docValueFields,
|
docValueFields,
|
||||||
|
|
|
@ -92,6 +92,7 @@ interface OwnProps {
|
||||||
bulkActions?: BulkActionsProp;
|
bulkActions?: BulkActionsProp;
|
||||||
data: TimelineItem[];
|
data: TimelineItem[];
|
||||||
defaultCellActions?: TGridCellAction[];
|
defaultCellActions?: TGridCellAction[];
|
||||||
|
visibleCellActions?: number;
|
||||||
disabledCellActions: string[];
|
disabledCellActions: string[];
|
||||||
fieldBrowserOptions?: FieldBrowserOptions;
|
fieldBrowserOptions?: FieldBrowserOptions;
|
||||||
filters?: Filter[];
|
filters?: Filter[];
|
||||||
|
@ -307,6 +308,7 @@ export const BodyComponent = React.memo<StatefulBodyProps>(
|
||||||
columnHeaders,
|
columnHeaders,
|
||||||
data,
|
data,
|
||||||
defaultCellActions,
|
defaultCellActions,
|
||||||
|
visibleCellActions,
|
||||||
disabledCellActions,
|
disabledCellActions,
|
||||||
fieldBrowserOptions,
|
fieldBrowserOptions,
|
||||||
filterQuery,
|
filterQuery,
|
||||||
|
@ -716,6 +718,7 @@ export const BodyComponent = React.memo<StatefulBodyProps>(
|
||||||
cellActions:
|
cellActions:
|
||||||
header.tGridCellActions?.map(buildAction) ??
|
header.tGridCellActions?.map(buildAction) ??
|
||||||
defaultCellActions?.map(buildAction),
|
defaultCellActions?.map(buildAction),
|
||||||
|
visibleCellActions,
|
||||||
}
|
}
|
||||||
: {}),
|
: {}),
|
||||||
};
|
};
|
||||||
|
@ -725,6 +728,7 @@ export const BodyComponent = React.memo<StatefulBodyProps>(
|
||||||
columnHeaders,
|
columnHeaders,
|
||||||
data,
|
data,
|
||||||
defaultCellActions,
|
defaultCellActions,
|
||||||
|
visibleCellActions,
|
||||||
disabledCellActions,
|
disabledCellActions,
|
||||||
dispatch,
|
dispatch,
|
||||||
id,
|
id,
|
||||||
|
|
|
@ -103,6 +103,7 @@ export interface TGridIntegratedProps {
|
||||||
dataProviders: DataProvider[];
|
dataProviders: DataProvider[];
|
||||||
dataViewId?: string | null;
|
dataViewId?: string | null;
|
||||||
defaultCellActions?: TGridCellAction[];
|
defaultCellActions?: TGridCellAction[];
|
||||||
|
visibleCellActions?: number;
|
||||||
deletedEventIds: Readonly<string[]>;
|
deletedEventIds: Readonly<string[]>;
|
||||||
disabledCellActions: string[];
|
disabledCellActions: string[];
|
||||||
docValueFields: DocValueFields[];
|
docValueFields: DocValueFields[];
|
||||||
|
@ -149,6 +150,7 @@ const TGridIntegratedComponent: React.FC<TGridIntegratedProps> = ({
|
||||||
dataProviders,
|
dataProviders,
|
||||||
dataViewId = null,
|
dataViewId = null,
|
||||||
defaultCellActions,
|
defaultCellActions,
|
||||||
|
visibleCellActions,
|
||||||
deletedEventIds,
|
deletedEventIds,
|
||||||
disabledCellActions,
|
disabledCellActions,
|
||||||
docValueFields,
|
docValueFields,
|
||||||
|
@ -366,6 +368,7 @@ const TGridIntegratedComponent: React.FC<TGridIntegratedProps> = ({
|
||||||
bulkActions={bulkActions}
|
bulkActions={bulkActions}
|
||||||
data={nonDeletedEvents}
|
data={nonDeletedEvents}
|
||||||
defaultCellActions={defaultCellActions}
|
defaultCellActions={defaultCellActions}
|
||||||
|
visibleCellActions={visibleCellActions}
|
||||||
disabledCellActions={disabledCellActions}
|
disabledCellActions={disabledCellActions}
|
||||||
fieldBrowserOptions={fieldBrowserOptions}
|
fieldBrowserOptions={fieldBrowserOptions}
|
||||||
filterQuery={filterQuery}
|
filterQuery={filterQuery}
|
||||||
|
|
|
@ -79,6 +79,7 @@ export interface TGridStandaloneProps {
|
||||||
columns: ColumnHeaderOptions[];
|
columns: ColumnHeaderOptions[];
|
||||||
dataViewId?: string | null;
|
dataViewId?: string | null;
|
||||||
defaultCellActions?: TGridCellAction[];
|
defaultCellActions?: TGridCellAction[];
|
||||||
|
visibleCellActions?: number;
|
||||||
deletedEventIds: Readonly<string[]>;
|
deletedEventIds: Readonly<string[]>;
|
||||||
disabledCellActions: string[];
|
disabledCellActions: string[];
|
||||||
end: string;
|
end: string;
|
||||||
|
@ -120,6 +121,7 @@ const TGridStandaloneComponent: React.FC<TGridStandaloneProps> = ({
|
||||||
columns,
|
columns,
|
||||||
dataViewId = null,
|
dataViewId = null,
|
||||||
defaultCellActions,
|
defaultCellActions,
|
||||||
|
visibleCellActions,
|
||||||
deletedEventIds,
|
deletedEventIds,
|
||||||
disabledCellActions,
|
disabledCellActions,
|
||||||
end,
|
end,
|
||||||
|
@ -361,6 +363,7 @@ const TGridStandaloneComponent: React.FC<TGridStandaloneProps> = ({
|
||||||
browserFields={browserFields}
|
browserFields={browserFields}
|
||||||
data={nonDeletedEvents}
|
data={nonDeletedEvents}
|
||||||
defaultCellActions={defaultCellActions}
|
defaultCellActions={defaultCellActions}
|
||||||
|
visibleCellActions={visibleCellActions}
|
||||||
disabledCellActions={disabledCellActions}
|
disabledCellActions={disabledCellActions}
|
||||||
filterQuery={filterQuery}
|
filterQuery={filterQuery}
|
||||||
hasAlertsCrud={hasAlertsCrud}
|
hasAlertsCrud={hasAlertsCrud}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue