From 4a08ed333b2ca4a0f57685b5910f448b1840f2e0 Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Wed, 24 May 2017 17:40:28 -0400 Subject: [PATCH] Only show sync button on inventories with sources --- awx/ui/client/src/inventories/inventory.list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/inventories/inventory.list.js b/awx/ui/client/src/inventories/inventory.list.js index 7535a31cce..52cf848d7b 100644 --- a/awx/ui/client/src/inventories/inventory.list.js +++ b/awx/ui/client/src/inventories/inventory.list.js @@ -93,7 +93,7 @@ export default ['i18n', function(i18n) { mode: 'all', ngClick: 'syncInventory(inventory)', awToolTip: i18n._('Sync all inventory sources'), - ngShow: "inventory.kind === ''", + ngShow: "inventory.kind === '' && inventory.has_inventory_sources", dataPlacement: "top", }, edit: {