Adds list item label

This commit is contained in:
Alex Corey 2020-11-05 16:54:48 -05:00
parent 68b399fdef
commit e372f4f8f6
2 changed files with 6 additions and 1 deletions

View File

@ -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`}
>

View File

@ -68,7 +68,7 @@ describe('<InventoryListItem />', () => {
.find('DataListCell')
.at(3)
.text()
).toBe('Default');
).toBe('OrganizationDefault');
expect(
wrapper
.find('DataListCell')