diff --git a/x-pack/plugins/security_solution/public/cases/components/all_cases/actions.tsx b/x-pack/plugins/security_solution/public/cases/components/all_cases/actions.tsx index 3010bf8e4e5c6..e6d1f359242eb 100644 --- a/x-pack/plugins/security_solution/public/cases/components/all_cases/actions.tsx +++ b/x-pack/plugins/security_solution/public/cases/components/all_cases/actions.tsx @@ -28,7 +28,7 @@ export const getActions = ({ }: GetActions): Array> => { const openCaseAction = { available: (item: Case | SubCase) => caseStatus !== CaseStatuses.open, - enabled: (item: Case | SubCase) => isIndividual(item), + enabled: (item: Case | SubCase) => isIndividual(item) && item.status !== CaseStatuses.open, description: statuses[CaseStatuses.open].actions.single.title, icon: statuses[CaseStatuses.open].icon, name: statuses[CaseStatuses.open].actions.single.title, @@ -45,7 +45,8 @@ export const getActions = ({ const makeInProgressAction = { available: (item: Case) => caseStatus !== CaseStatuses['in-progress'], - enabled: (item: Case | SubCase) => isIndividual(item), + enabled: (item: Case | SubCase) => + isIndividual(item) && item.status !== CaseStatuses['in-progress'], description: statuses[CaseStatuses['in-progress']].actions.single.title, icon: statuses[CaseStatuses['in-progress']].icon, name: statuses[CaseStatuses['in-progress']].actions.single.title, @@ -62,7 +63,7 @@ export const getActions = ({ const closeCaseAction = { available: (item: Case | SubCase) => caseStatus !== CaseStatuses.closed, - enabled: (item: Case | SubCase) => isIndividual(item), + enabled: (item: Case | SubCase) => isIndividual(item) && item.status !== CaseStatuses.closed, description: statuses[CaseStatuses.closed].actions.single.title, icon: statuses[CaseStatuses.closed].icon, name: statuses[CaseStatuses.closed].actions.single.title,