Added has_active_failures to Hosts view under Inventory detail. There is now a Failures column. A red dot (icon-circle) displays for hosts where has_active_failures == true, otherwise the column is empty.

This commit is contained in:
chouseknecht
2013-06-12 16:12:07 -04:00
parent 3bb0323b02
commit 614607fd0e
4 changed files with 38 additions and 12 deletions

View File

@@ -92,6 +92,16 @@ angular.module('InventoryFormDefinition', [])
},
description: {
label: 'Description'
},
has_active_failures: {
label: 'Failures',
showValue: false,
ngShow: "\{\{ host.has_active_failures \}\}",
icon: 'icon-circle',
"class": 'active-failures-\{\{ host.has_active_failures \}\}',
searchField: 'has_active_failures',
searchType: 'boolean',
searchOptions: [{ name: "No", value: 0 }, { name: "Yes", value: 1 }]
}
},