Skip to content

Commit

Permalink
hiding log callout for managed (elastic#119186) (elastic#119286)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Julia Bardi <[email protected]>
  • Loading branch information
kibanamachine and juliaElastic authored Nov 22, 2021
1 parent 19725e4 commit 7d0c7aa
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,9 @@ export const AgentLogsUI: React.FunctionComponent<AgentLogsProps> = memo(

return (
<WrapperFlexGroup direction="column" gutterSize="m">
{agentPolicy && !agentPolicy.monitoring_enabled?.includes('logs') && (
<AgentPolicyLogsNotEnabledCallout agentPolicy={agentPolicy} />
)}
{agentPolicy &&
!agentPolicy.monitoring_enabled?.includes('logs') &&
!agentPolicy.is_managed && <AgentPolicyLogsNotEnabledCallout agentPolicy={agentPolicy} />}
<EuiFlexItem grow={false}>
<EuiFlexGroup gutterSize="m">
<EuiFlexItem>
Expand Down

0 comments on commit 7d0c7aa

Please sign in to comment.