mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
[Fleet] Hide delete policy button for default policies (#98962)
* Hide delete policy button for default policies * Update x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_form.tsx Co-authored-by: Nicolas Chaulet <n.chaulet@gmail.com> * Fix formatting Co-authored-by: Nicolas Chaulet <n.chaulet@gmail.com>
This commit is contained in:
parent
788bf329b1
commit
3b869e85b5
1 changed files with 5 additions and 1 deletions
|
@ -284,7 +284,11 @@ export const AgentPolicyForm: React.FunctionComponent<Props> = ({
|
|||
}}
|
||||
/>
|
||||
</EuiDescribedFormGroup>
|
||||
{isEditing && 'id' in agentPolicy && agentPolicy.is_managed !== true ? (
|
||||
{isEditing &&
|
||||
'id' in agentPolicy &&
|
||||
!agentPolicy.is_managed &&
|
||||
!agentPolicy.is_default &&
|
||||
!agentPolicy.is_default_fleet_server ? (
|
||||
<EuiDescribedFormGroup
|
||||
title={
|
||||
<h4>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue