diff --git a/awx/ui/src/screens/Instances/InstanceDetail/InstanceDetail.js b/awx/ui/src/screens/Instances/InstanceDetail/InstanceDetail.js
index e1882d3a75..2716b74850 100644
--- a/awx/ui/src/screens/Instances/InstanceDetail/InstanceDetail.js
+++ b/awx/ui/src/screens/Instances/InstanceDetail/InstanceDetail.js
@@ -209,33 +209,31 @@ function InstanceDetail({ setBreadcrumb, isK8s }) {
- {(isExecutionNode || isHopNode || !isManaged) && (
- <>
- {instance.related?.install_bundle && (
-
-
-
- }
- />
- )}
-
- >
+ {!isManaged && instance.related?.install_bundle && (
+
+
+
+ }
+ />
+ )}
+ {(isExecutionNode || isHopNode) && (
+
)}
{!isHopNode && (
<>
@@ -341,9 +339,8 @@ function InstanceDetail({ setBreadcrumb, isK8s }) {
)}
- {config?.me?.is_superuser &&
- isK8s &&
- (isExecutionNode || isHopNode || !isManaged) && (
+ {config?.me?.is_superuser && isK8s && !isManaged && (
+ <>
- )}
- {config?.me?.is_superuser &&
- isK8s &&
- (isExecutionNode || isHopNode || !isManaged) && (
- )}
+ >
+ )}
{isExecutionNode && (
diff --git a/awx/ui/src/screens/Instances/Shared/InstanceForm.js b/awx/ui/src/screens/Instances/Shared/InstanceForm.js
index d623952cc9..6634295302 100644
--- a/awx/ui/src/screens/Instances/Shared/InstanceForm.js
+++ b/awx/ui/src/screens/Instances/Shared/InstanceForm.js
@@ -16,7 +16,7 @@ const INSTANCE_TYPES = [
{ id: 'hop', name: t`Hop` },
];
-function InstanceFormFields({ isEdit, instance }) {
+function InstanceFormFields({ isEdit }) {
const [instanceTypeField, instanceTypeMeta, instanceTypeHelpers] = useField({
name: 'node_type',
validate: required(t`Set a value for this field`),
@@ -98,7 +98,6 @@ function InstanceFormFields({ isEdit, instance }) {
name="peers_from_control_nodes"
label={t`Peers from control nodes`}
tooltip={t`If enabled, control nodes will peer to this instance automatically. If disabled, instance will be connected only to associated peers.`}
- isDisabled={parseInt(instance.listener_port, 10) < 1024 || true}
/>
>
@@ -139,7 +138,7 @@ function InstanceForm({
{(formik) => (