1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-27 00:55:06 +03:00

Updates for receptor reaslese to ui for protocol and is_managed

This commit is contained in:
David O Neill 2024-01-19 11:06:44 +00:00 committed by Seth Foster
parent 7cf639d8eb
commit 1712540c8e
3 changed files with 10 additions and 2 deletions

View File

@ -61,7 +61,6 @@ function InstanceEndPointList({ setBreadcrumb }) {
if (id.toString() === receptor.instance.toString()) {
receptor.name = detail.hostname;
endpoint_list.push(receptor);
console.log(receptor);
}
}
@ -137,6 +136,7 @@ function InstanceEndPointList({ setBreadcrumb }) {
<HeaderRow qsConfig={QS_CONFIG} isExpandable>
<HeaderCell sortKey="address">{t`Address`}</HeaderCell>
<HeaderCell sortKey="port">{t`Port`}</HeaderCell>
<HeaderCell sortKey="protocol">{t`Protocol`}</HeaderCell>
<HeaderCell sortKey="canonical">{t`Canonical`}</HeaderCell>
</HeaderRow>
}

View File

@ -42,6 +42,10 @@ function InstanceEndPointListItem({
{peerEndpoint.port}
</Td>
<Td id={labelId} dataLabel={t`Protocol`}>
{peerEndpoint.protocol}
</Td>
<Td id={labelId} dataLabel={t`Canonical`}>
{peerEndpoint.canonical.toString()}
</Td>

View File

@ -153,6 +153,10 @@ function InstancePeerList({ setBreadcrumb }) {
continue;
}
if(receptor.is_internal) {
continue;
}
const copy = receptor;
copy.hostname = host.hostname;
copy.node_type = host.node_type;
@ -318,7 +322,7 @@ function InstancePeerList({ setBreadcrumb }) {
{ key: 'address', name: t`Address` },
{ key: 'port', name: t`Port` },
{ key: 'node_type', name: t`Node Type` },
{ key: 'canonical', name: t`Canonical` },
{ key: 'protocol', name: t`Protocol` },
]}
/>
)}