Skip to content

Commit

Permalink
hiding log callout for managed (elastic#119186)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
2 people authored and TinLe committed Dec 22, 2021

Verified

This commit was signed with the committer’s verified signature.
aldesantis Alessandro Desantis
1 parent 5f558fa commit 6ef325b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 6ef325b

Please sign in to comment.