mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Adds list item label
This commit is contained in:
@@ -39,6 +39,10 @@ const ListGroup = styled.div`
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
const OrgLabel = styled.b`
|
||||||
|
margin-right: 20px;
|
||||||
|
`;
|
||||||
|
|
||||||
function InventoryListItem({
|
function InventoryListItem({
|
||||||
inventory,
|
inventory,
|
||||||
isSelected,
|
isSelected,
|
||||||
@@ -114,6 +118,7 @@ function InventoryListItem({
|
|||||||
: i18n._(t`Inventory`)}
|
: i18n._(t`Inventory`)}
|
||||||
</DataListCell>,
|
</DataListCell>,
|
||||||
<DataListCell key="organization">
|
<DataListCell key="organization">
|
||||||
|
<OrgLabel>{i18n._(t`Organization`)}</OrgLabel>
|
||||||
<Link
|
<Link
|
||||||
to={`/organizations/${inventory.summary_fields.organization.id}/details`}
|
to={`/organizations/${inventory.summary_fields.organization.id}/details`}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ describe('<InventoryListItem />', () => {
|
|||||||
.find('DataListCell')
|
.find('DataListCell')
|
||||||
.at(3)
|
.at(3)
|
||||||
.text()
|
.text()
|
||||||
).toBe('Default');
|
).toBe('OrganizationDefault');
|
||||||
expect(
|
expect(
|
||||||
wrapper
|
wrapper
|
||||||
.find('DataListCell')
|
.find('DataListCell')
|
||||||
|
|||||||
Reference in New Issue
Block a user