diff options
author | Seth Foster <fosterseth@users.noreply.github.com> | 2024-02-09 04:10:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-09 04:10:10 +0100 |
commit | f9a23a56459951158cb88ec0ad5d5ff25337e3c2 (patch) | |
tree | 425de5ee73039124c69ae323a40091c982c7c83e | |
parent | Fix UI peers_from_control_nodes (#14858) (diff) | |
download | awx-f9a23a56459951158cb88ec0ad5d5ff25337e3c2.tar.xz awx-f9a23a56459951158cb88ec0ad5d5ff25337e3c2.zip |
Remove enable button for hop nodes (#14861)
Enabled/disabled does not apply to hop nodes,
since hop nodes don't run jobs.
Signed-off-by: Seth Foster <fosterbseth@gmail.com>
-rw-r--r-- | awx/ui/src/screens/Instances/InstanceDetail/InstanceDetail.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/awx/ui/src/screens/Instances/InstanceDetail/InstanceDetail.js b/awx/ui/src/screens/Instances/InstanceDetail/InstanceDetail.js index 2716b74850..1c94bd158b 100644 --- a/awx/ui/src/screens/Instances/InstanceDetail/InstanceDetail.js +++ b/awx/ui/src/screens/Instances/InstanceDetail/InstanceDetail.js @@ -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 && ( |