mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 18:51:06 -03:30
Merge pull request #8628 from nixocio/ui_issue_7681
Hide sync icon for smart inventory rows in Inventory List Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -101,7 +101,9 @@ function InventoryListItem({
|
|||||||
<DataListItemCells
|
<DataListItemCells
|
||||||
dataListCells={[
|
dataListCells={[
|
||||||
<DataListCell key="sync-status" isIcon>
|
<DataListCell key="sync-status" isIcon>
|
||||||
<SyncStatusIndicator status={syncStatus} />
|
{inventory.kind !== 'smart' && (
|
||||||
|
<SyncStatusIndicator status={syncStatus} />
|
||||||
|
)}
|
||||||
</DataListCell>,
|
</DataListCell>,
|
||||||
<DataListCell key="name">
|
<DataListCell key="name">
|
||||||
{inventory.pending_deletion ? (
|
{inventory.pending_deletion ? (
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ describe('<InventoryListItem />', () => {
|
|||||||
inventory={{
|
inventory={{
|
||||||
id: 1,
|
id: 1,
|
||||||
name: 'Inventory',
|
name: 'Inventory',
|
||||||
|
kind: '',
|
||||||
summary_fields: {
|
summary_fields: {
|
||||||
organization: {
|
organization: {
|
||||||
id: 1,
|
id: 1,
|
||||||
@@ -51,6 +52,7 @@ describe('<InventoryListItem />', () => {
|
|||||||
onSelect={() => {}}
|
onSelect={() => {}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
expect(wrapper.find('SyncStatusIndicator').length).toBe(1);
|
||||||
expect(
|
expect(
|
||||||
wrapper
|
wrapper
|
||||||
.find('DataListCell')
|
.find('DataListCell')
|
||||||
|
|||||||
Reference in New Issue
Block a user