Co-authored-by: Sergi Massaneda <sergi.massaneda@elastic.co>
This commit is contained in:
parent
229d735fee
commit
8ebbac7860
|
@ -217,18 +217,22 @@ function ObservabilityActions({
|
|||
|
||||
const actionsMenuItems = useMemo(() => {
|
||||
return [
|
||||
timelines.getAddToExistingCaseButton({
|
||||
event,
|
||||
casePermissions,
|
||||
appId: observabilityFeatureId,
|
||||
onClose: afterCaseSelection,
|
||||
}),
|
||||
timelines.getAddToNewCaseButton({
|
||||
event,
|
||||
casePermissions,
|
||||
appId: observabilityFeatureId,
|
||||
onClose: afterCaseSelection,
|
||||
}),
|
||||
...(casePermissions?.crud
|
||||
? [
|
||||
timelines.getAddToExistingCaseButton({
|
||||
event,
|
||||
casePermissions,
|
||||
appId: observabilityFeatureId,
|
||||
onClose: afterCaseSelection,
|
||||
}),
|
||||
timelines.getAddToNewCaseButton({
|
||||
event,
|
||||
casePermissions,
|
||||
appId: observabilityFeatureId,
|
||||
onClose: afterCaseSelection,
|
||||
}),
|
||||
]
|
||||
: []),
|
||||
...(alertPermissions.crud ? statusActionItems : []),
|
||||
];
|
||||
}, [afterCaseSelection, casePermissions, timelines, event, statusActionItems, alertPermissions]);
|
||||
|
|
Loading…
Reference in a new issue