mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Disable contextMenu when event is not event.kind=event (#100027)
This commit is contained in:
parent
7058e919ba
commit
108252bd8d
1 changed files with 6 additions and 1 deletions
|
@ -115,6 +115,11 @@ const ActionsComponent: React.FC<ActionProps> = ({
|
|||
);
|
||||
const eventType = getEventType(ecsData);
|
||||
|
||||
const isEventContextMenuEnabled = useMemo(
|
||||
() => isEventFilteringEnabled && !!ecsData.event?.kind && ecsData.event?.kind[0] === 'event',
|
||||
[ecsData.event?.kind, isEventFilteringEnabled]
|
||||
);
|
||||
|
||||
return (
|
||||
<>
|
||||
{showCheckboxes && (
|
||||
|
@ -197,7 +202,7 @@ const ActionsComponent: React.FC<ActionProps> = ({
|
|||
key="alert-context-menu"
|
||||
ecsRowData={ecsData}
|
||||
timelineId={timelineId}
|
||||
disabled={eventType !== 'signal' && (!isEventFilteringEnabled || eventType !== 'raw')}
|
||||
disabled={eventType !== 'signal' && !isEventContextMenuEnabled}
|
||||
refetch={refetch}
|
||||
onRuleChange={onRuleChange}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue