Skip to content

Commit

Permalink
disable action when 0 agents
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaElastic committed Jan 21, 2025
1 parent 8b97ad0 commit 91dbdca
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ export const AgentPolicyActionMenu = memo<{
}}
key="upgradeAgents"
data-test-subj="agentPolicyActionMenuUpgradeAgentsButton"
disabled={(agentPolicy.agents || 0) === 0}
>
<FormattedMessage
id="xpack.fleet.agentPolicyActionMenu.upgradeAgentsActionText"
Expand All @@ -238,6 +239,7 @@ export const AgentPolicyActionMenu = memo<{
}}
key="getUninstallCommand"
data-test-subj="uninstall-agents-command-menu-item"
disabled={(agentPolicy.agents || 0) === 0}
>
<FormattedMessage
id="xpack.fleet.agentPolicyActionMenu.getUninstallCommand"
Expand Down

0 comments on commit 91dbdca

Please sign in to comment.