mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Renable logs disabled callout for managed policies (#131204)
This commit is contained in:
parent
32751cb416
commit
5c485d405d
1 changed files with 24 additions and 22 deletions
|
@ -84,25 +84,27 @@ const AgentPolicyLogsNotEnabledCallout: React.FunctionComponent<{ agentPolicy: A
|
|||
/>
|
||||
}
|
||||
>
|
||||
<FormattedMessage
|
||||
id="xpack.fleet.agentLogs.logDisabledCallOutDescription"
|
||||
defaultMessage="Update the agent's policy {settingsLink} to enable logs collection."
|
||||
values={{
|
||||
settingsLink: (
|
||||
<EuiLink
|
||||
href={getHref('policy_details', {
|
||||
policyId: agentPolicy.id,
|
||||
tabId: 'settings',
|
||||
})}
|
||||
>
|
||||
<FormattedMessage
|
||||
id="xpack.fleet.agentLogs.settingsLink"
|
||||
defaultMessage="settings"
|
||||
/>
|
||||
</EuiLink>
|
||||
),
|
||||
}}
|
||||
/>
|
||||
{agentPolicy.is_managed ? null : (
|
||||
<FormattedMessage
|
||||
id="xpack.fleet.agentLogs.logDisabledCallOutDescription"
|
||||
defaultMessage="Update the agent's policy {settingsLink} to enable logs collection."
|
||||
values={{
|
||||
settingsLink: (
|
||||
<EuiLink
|
||||
href={getHref('policy_details', {
|
||||
policyId: agentPolicy.id,
|
||||
tabId: 'settings',
|
||||
})}
|
||||
>
|
||||
<FormattedMessage
|
||||
id="xpack.fleet.agentLogs.settingsLink"
|
||||
defaultMessage="settings"
|
||||
/>
|
||||
</EuiLink>
|
||||
),
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
</EuiCallOut>
|
||||
</EuiFlexItem>
|
||||
);
|
||||
|
@ -278,9 +280,9 @@ export const AgentLogsUI: React.FunctionComponent<AgentLogsProps> = memo(
|
|||
|
||||
return (
|
||||
<WrapperFlexGroup direction="column" gutterSize="m">
|
||||
{agentPolicy &&
|
||||
!agentPolicy.monitoring_enabled?.includes('logs') &&
|
||||
!agentPolicy.is_managed && <AgentPolicyLogsNotEnabledCallout agentPolicy={agentPolicy} />}
|
||||
{agentPolicy && !agentPolicy.monitoring_enabled?.includes('logs') && (
|
||||
<AgentPolicyLogsNotEnabledCallout agentPolicy={agentPolicy} />
|
||||
)}
|
||||
<EuiFlexItem grow={false}>
|
||||
<EuiFlexGroup gutterSize="m">
|
||||
<EuiFlexItem>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue