From 5b48bea8c95a1c7f4b830f618995e4760e3e0018 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Fri, 22 Nov 2013 22:32:23 +0000 Subject: [PATCH] AC-724 inventory.total_with_inventory source is now available and connected to the dashboard. If a value is not present, 0 will be returned rather than '?' --- awx/ui/static/js/widgets/InventorySyncStatus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/static/js/widgets/InventorySyncStatus.js b/awx/ui/static/js/widgets/InventorySyncStatus.js index 61b00ab92b..435eef505b 100644 --- a/awx/ui/static/js/widgets/InventorySyncStatus.js +++ b/awx/ui/static/js/widgets/InventorySyncStatus.js @@ -50,7 +50,7 @@ angular.module('InventorySyncStatusWidget', ['RestServices', 'Utilities']) html += makeRow({ label: 'Inventories', count: [(dashboard.inventories && dashboard.inventories.total_with_inventory_source) ? - dashboard.inventories.total_with_inventory_source : '?'], + dashboard.inventories.total_with_inventory_source : 0 ], fail: [(dashboard.inventories && dashboard.inventories.inventory_failed) ? dashboard.inventories.inventory_failed : 0], link: '/#/inventories/?has_inventory_sources=true', fail_link: '/#/inventories/?inventory_sources_with_failures=true'