1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

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 '?'

This commit is contained in:
Chris Houseknecht 2013-11-22 22:32:23 +00:00
parent 9171382894
commit 5b48bea8c9

View File

@ -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'