mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 06:28:01 -03:30
Hide sync icon for smart inventory rows in Inventory List
Hide sync icon for smart inventory rows in Inventory List See: https://github.com/ansible/awx/issues/7681
This commit is contained in:
parent
b6a55e53d5
commit
9141e789aa
@ -101,7 +101,9 @@ function InventoryListItem({
|
||||
<DataListItemCells
|
||||
dataListCells={[
|
||||
<DataListCell key="sync-status" isIcon>
|
||||
<SyncStatusIndicator status={syncStatus} />
|
||||
{inventory.kind !== 'smart' && (
|
||||
<SyncStatusIndicator status={syncStatus} />
|
||||
)}
|
||||
</DataListCell>,
|
||||
<DataListCell key="name">
|
||||
{inventory.pending_deletion ? (
|
||||
|
||||
@ -36,6 +36,7 @@ describe('<InventoryListItem />', () => {
|
||||
inventory={{
|
||||
id: 1,
|
||||
name: 'Inventory',
|
||||
kind: '',
|
||||
summary_fields: {
|
||||
organization: {
|
||||
id: 1,
|
||||
@ -51,6 +52,7 @@ describe('<InventoryListItem />', () => {
|
||||
onSelect={() => {}}
|
||||
/>
|
||||
);
|
||||
expect(wrapper.find('SyncStatusIndicator').length).toBe(1);
|
||||
expect(
|
||||
wrapper
|
||||
.find('DataListCell')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user