summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeth Foster <fosterseth@users.noreply.github.com>2024-02-09 04:10:10 +0100
committerGitHub <noreply@github.com>2024-02-09 04:10:10 +0100
commitf9a23a56459951158cb88ec0ad5d5ff25337e3c2 (patch)
tree425de5ee73039124c69ae323a40091c982c7c83e
parentFix UI peers_from_control_nodes (#14858) (diff)
downloadawx-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.js14
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 && (