Display host name for Associate Modal (#5407)

Display host name for Associate Modal

See: https://github.com/ansible/awx/issues/11256
This commit is contained in:
Kersom 2021-11-01 15:50:59 -04:00 committed by Shane McDonald
parent a2acbe9fe6
commit abb1125a2c
No known key found for this signature in database
GPG Key ID: 6F374AF6E9EB9374
2 changed files with 5 additions and 4 deletions

View File

@ -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,

View File

@ -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 && (