From e372f4f8f6b27343c4b0caa07ec5806c5cfe5c45 Mon Sep 17 00:00:00 2001 From: Alex Corey Date: Thu, 5 Nov 2020 16:54:48 -0500 Subject: [PATCH] Adds list item label --- .../screens/Inventory/InventoryList/InventoryListItem.jsx | 5 +++++ .../Inventory/InventoryList/InventoryListItem.test.jsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/awx/ui_next/src/screens/Inventory/InventoryList/InventoryListItem.jsx b/awx/ui_next/src/screens/Inventory/InventoryList/InventoryListItem.jsx index 5e644cde9d..7e3feaec33 100644 --- a/awx/ui_next/src/screens/Inventory/InventoryList/InventoryListItem.jsx +++ b/awx/ui_next/src/screens/Inventory/InventoryList/InventoryListItem.jsx @@ -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`)} , + {i18n._(t`Organization`)} diff --git a/awx/ui_next/src/screens/Inventory/InventoryList/InventoryListItem.test.jsx b/awx/ui_next/src/screens/Inventory/InventoryList/InventoryListItem.test.jsx index 7507f37cb1..b23878a651 100644 --- a/awx/ui_next/src/screens/Inventory/InventoryList/InventoryListItem.test.jsx +++ b/awx/ui_next/src/screens/Inventory/InventoryList/InventoryListItem.test.jsx @@ -68,7 +68,7 @@ describe('', () => { .find('DataListCell') .at(3) .text() - ).toBe('Default'); + ).toBe('OrganizationDefault'); expect( wrapper .find('DataListCell')