diff --git a/awx/ui_next/src/screens/Inventory/InventorySources/InventorySourceList.jsx b/awx/ui_next/src/screens/Inventory/InventorySources/InventorySourceList.jsx
index 14c22a06b5..e3274c19a2 100644
--- a/awx/ui_next/src/screens/Inventory/InventorySources/InventorySourceList.jsx
+++ b/awx/ui_next/src/screens/Inventory/InventorySources/InventorySourceList.jsx
@@ -25,8 +25,7 @@ import InventorySourceListItem from './InventorySourceListItem';
import useWsInventorySources from './useWsInventorySources';
import { relatedResourceDeleteRequests } from '../../../util/getRelatedResourceDeleteDetails';
-const QS_CONFIG = getQSConfig('inventory', {
- not__source: '',
+const QS_CONFIG = getQSConfig('inventory_sources', {
page: 1,
page_size: 20,
order_by: 'name',
diff --git a/awx/ui_next/src/screens/Inventory/InventorySources/InventorySourceList.test.jsx b/awx/ui_next/src/screens/Inventory/InventorySources/InventorySourceList.test.jsx
index 138fac4207..93b4faa962 100644
--- a/awx/ui_next/src/screens/Inventory/InventorySources/InventorySourceList.test.jsx
+++ b/awx/ui_next/src/screens/Inventory/InventorySources/InventorySourceList.test.jsx
@@ -115,7 +115,6 @@ describe('', () => {
test('api calls should be made on mount', async () => {
expect(InventoriesAPI.readSources).toHaveBeenCalledWith('1', {
- not__source: '',
order_by: 'name',
page: 1,
page_size: 20,
diff --git a/awx/ui_next/src/screens/Inventory/InventorySources/InventorySourceListItem.jsx b/awx/ui_next/src/screens/Inventory/InventorySources/InventorySourceListItem.jsx
index dce8c861fe..8bb3acd36e 100644
--- a/awx/ui_next/src/screens/Inventory/InventorySources/InventorySourceListItem.jsx
+++ b/awx/ui_next/src/screens/Inventory/InventorySources/InventorySourceListItem.jsx
@@ -94,16 +94,18 @@ function InventorySourceListItem({
{['running', 'pending', 'waiting'].includes(source?.status) ? (
-
+ {source.summary_fields?.current_job?.id && (
+
+ )}
) : (
', () => {
'Custom virtual environment /var/lib/awx/env must be replaced by an execution environment.'
);
});
+
+ test('should render cancel button while job is running', () => {
+ const onSelect = jest.fn();
+ wrapper = mountWithContexts(
+
+ );
+ expect(wrapper.find('JobCancelButton').length).toBe(1);
+ });
});