diff --git a/webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/components/DescriptionCard.js b/webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/components/DescriptionCard.js index b2b028a9..452e000a 100644 --- a/webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/components/DescriptionCard.js +++ b/webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/components/DescriptionCard.js @@ -12,7 +12,14 @@ import DefaultLoaderEmptyState from 'foremanReact/components/HostDetails/Details import { STATUS } from 'foremanReact/constants'; import { translate as __ } from 'foremanReact/common/I18n'; -const DescriptionCard = ({ proxyName, caProxy, env, status }) => ( +const DescriptionCard = ({ + proxyName, + caProxy, + proxyId, + caProxyId, + env, + status, +}) => ( @@ -31,24 +38,28 @@ const DescriptionCard = ({ proxyName, caProxy, env, status }) => ( - {__('Puppet smart proxy')} + {__('Puppet Smart Proxy')} } status={status} > - {proxyName} + {proxyName && ( + {proxyName} + )} - {__('Puppet server CA')} + {__('Puppet CA Smart Proxy')} } status={status} > - {caProxy} + {caProxy && ( + {caProxy} + )} @@ -58,14 +69,18 @@ const DescriptionCard = ({ proxyName, caProxy, env, status }) => ( DescriptionCard.propTypes = { caProxy: PropTypes.string, + caProxyId: PropTypes.number, env: PropTypes.string, + proxyId: PropTypes.number, proxyName: PropTypes.string, status: PropTypes.string, }; DescriptionCard.defaultProps = { caProxy: undefined, + caProxyId: undefined, env: undefined, + proxyId: undefined, proxyName: undefined, status: STATUS.PENDING, }; diff --git a/webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/index.js b/webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/index.js index 3aa5da2e..8f1c18ce 100644 --- a/webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/index.js +++ b/webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/index.js @@ -12,6 +12,8 @@ const Reports = ({ puppet_proxy_name: proxyName, puppet_ca_proxy_name: caProxy, environment_name: env, + puppet_proxy_id: proxyId, + puppet_ca_proxy_id: caProxyId, }, }) => (
@@ -20,6 +22,8 @@ const Reports = ({