Skip to content

Commit

Permalink
Fixes #37648 - Show complete hostgroup name in host overview and table
Browse files Browse the repository at this point in the history
  • Loading branch information
kmalyjur committed Jul 15, 2024
1 parent eda5323 commit d0ec176
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const DetailsCard = ({
comment,
owner_id: ownerID,
owner_name: ownerName,
hostgroup_title: hostgroupTitle,
hostgroup_name: hostgroupName,
hostgroup_id: hostgroupId,
permissions: {
Expand Down Expand Up @@ -130,7 +131,7 @@ const DetailsCard = ({
target="_blank"
isInline
>
{hostgroupName}
{hostgroupTitle}
</Button>
</FlexItem>
<FlexItem>
Expand Down Expand Up @@ -196,6 +197,7 @@ DetailsCard.propTypes = {
status: PropTypes.string,
hostDetails: PropTypes.shape({
comment: PropTypes.string,
hostgroup_title: PropTypes.string,
hostgroup_name: PropTypes.string,
hostgroup_id: PropTypes.number,
ip: PropTypes.string,
Expand All @@ -212,6 +214,7 @@ DetailsCard.defaultProps = {
status: STATUS.PENDING,
hostDetails: {
comment: undefined,
hostgroup_title: undefined,
hostgroup_name: undefined,
hostgroup_id: undefined,
ip: undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const SystemPropertiesCard = ({ status, hostDetails }) => {
organization_name: organization,
owner_name: ownerName,
domain_name: domain,
hostgroup_name: hostgroupName,
hostgroup_title: hostgroupTitle,
owner_type: ownerType,
} = hostDetails;
return (
Expand Down Expand Up @@ -103,7 +103,7 @@ const SystemPropertiesCard = ({ status, hostDetails }) => {
status={status}
emptyState={<DefaultLoaderEmptyState />}
>
{hostgroupName}
{hostgroupTitle}
</SkeletonLoader>
</DescriptionListDescription>
</DescriptionListGroup>
Expand Down Expand Up @@ -164,7 +164,7 @@ const SystemPropertiesCard = ({ status, hostDetails }) => {
SystemPropertiesCard.propTypes = {
status: PropTypes.string,
hostDetails: PropTypes.shape({
hostgroup_name: PropTypes.string,
hostgroup_title: PropTypes.string,
model_name: PropTypes.string,
organization_name: PropTypes.string,
location_name: PropTypes.string,
Expand All @@ -184,7 +184,7 @@ SystemPropertiesCard.defaultProps = {
model_name: undefined,
organization_name: undefined,
location_name: undefined,
hostgroup_name: undefined,
hostgroup_title: undefined,
owner_type: undefined,
owner_name: undefined,
domain_name: undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const coreHostsIndexColumns = [
title: __('Host group'),
wrapper: hostDetails => (
<a href={`/hostgroups/${hostDetails?.hostgroup_id}/edit`}>
{hostDetails?.hostgroup_name}
{hostDetails?.hostgroup_title}
</a>
),
isSorted: true,
Expand Down

0 comments on commit d0ec176

Please sign in to comment.