Skip to content

Commit

Permalink
Remove enable button for hop nodes (ansible#14861)
Browse files Browse the repository at this point in the history
Enabled/disabled does not apply to hop nodes,
since hop nodes don't run jobs.

Signed-off-by: Seth Foster <[email protected]>
  • Loading branch information
fosterseth authored and djyasin committed Nov 11, 2024
1 parent 7fe5967 commit 90e7f90
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions awx/ui/src/screens/Instances/InstanceDetail/InstanceDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,12 +377,14 @@ function InstanceDetail({ setBreadcrumb, isK8s }) {
</Button>
</Tooltip>
)}
<InstanceToggle
css="display: inline-flex;"
fetchInstances={fetchDetails}
instance={instance}
dataCy="enable-instance"
/>
{!isHopNode && (
<InstanceToggle
css="display: inline-flex;"
fetchInstances={fetchDetails}
instance={instance}
dataCy="enable-instance"
/>
)}
</CardActionsRow>

{error && (
Expand Down

0 comments on commit 90e7f90

Please sign in to comment.