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