[Security Solution][Endpoint][Host Isolation] Hide isolate host option in alert details rather than disabling (#111064)
This commit is contained in:
parent
7fc4c2935d
commit
a4828baf3d
|
@ -80,12 +80,13 @@ export const useHostIsolationAction = ({
|
||||||
isIsolationAllowed &&
|
isIsolationAllowed &&
|
||||||
isEndpointAlert &&
|
isEndpointAlert &&
|
||||||
isolationSupported &&
|
isolationSupported &&
|
||||||
isHostIsolationPanelOpen === false
|
isHostIsolationPanelOpen === false &&
|
||||||
|
loadingHostIsolationStatus === false
|
||||||
? [
|
? [
|
||||||
<EuiContextMenuItem
|
<EuiContextMenuItem
|
||||||
key="isolate-host-action-item"
|
key="isolate-host-action-item"
|
||||||
data-test-subj="isolate-host-action-item"
|
data-test-subj="isolate-host-action-item"
|
||||||
disabled={loadingHostIsolationStatus || agentStatus === HostStatus.UNENROLLED}
|
disabled={agentStatus === HostStatus.UNENROLLED}
|
||||||
onClick={isolateHostHandler}
|
onClick={isolateHostHandler}
|
||||||
>
|
>
|
||||||
{isolateHostTitle}
|
{isolateHostTitle}
|
||||||
|
|
Loading…
Reference in a new issue