mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 04:47:44 -02:30
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:
@@ -50,7 +50,7 @@ angular.module('InventorySyncStatusWidget', ['RestServices', 'Utilities'])
|
|||||||
|
|
||||||
html += makeRow({ label: 'Inventories',
|
html += makeRow({ label: 'Inventories',
|
||||||
count: [(dashboard.inventories && dashboard.inventories.total_with_inventory_source) ?
|
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],
|
fail: [(dashboard.inventories && dashboard.inventories.inventory_failed) ? dashboard.inventories.inventory_failed : 0],
|
||||||
link: '/#/inventories/?has_inventory_sources=true',
|
link: '/#/inventories/?has_inventory_sources=true',
|
||||||
fail_link: '/#/inventories/?inventory_sources_with_failures=true'
|
fail_link: '/#/inventories/?inventory_sources_with_failures=true'
|
||||||
|
|||||||
Reference in New Issue
Block a user