From abb1125a2c69117f9cfeca2aa4658c491ae8c756 Mon Sep 17 00:00:00 2001 From: Kersom <9053044+nixocio@users.noreply.github.com> Date: Mon, 1 Nov 2021 15:50:59 -0400 Subject: [PATCH] Display host name for Associate Modal (#5407) Display host name for Associate Modal See: https://github.com/ansible/awx/issues/11256 --- awx/ui/src/components/AssociateModal/AssociateModal.js | 5 +---- awx/ui/src/screens/InstanceGroup/Instances/InstanceList.js | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/awx/ui/src/components/AssociateModal/AssociateModal.js b/awx/ui/src/components/AssociateModal/AssociateModal.js index abfc2293ac..38335020d2 100644 --- a/awx/ui/src/components/AssociateModal/AssociateModal.js +++ b/awx/ui/src/components/AssociateModal/AssociateModal.js @@ -18,10 +18,7 @@ const QS_CONFIG = (order_by = 'name') => function AssociateModal({ header = t`Items`, - columns = [ - { key: 'hostname', name: t`Name` }, - { key: 'node_type', name: t`Node Type` }, - ], + columns = [], title = t`Select Items`, onClose, onAssociate, diff --git a/awx/ui/src/screens/InstanceGroup/Instances/InstanceList.js b/awx/ui/src/screens/InstanceGroup/Instances/InstanceList.js index f0a87fe653..946bc81d2e 100644 --- a/awx/ui/src/screens/InstanceGroup/Instances/InstanceList.js +++ b/awx/ui/src/screens/InstanceGroup/Instances/InstanceList.js @@ -283,6 +283,10 @@ function InstanceList() { title={t`Select Instances`} optionsRequest={readInstancesOptions} displayKey="hostname" + columns={[ + { key: 'hostname', name: t`Name` }, + { key: 'node_type', name: t`Node Type` }, + ]} /> )} {error && (