AC-331 final clean up

This commit is contained in:
chouseknecht
2013-08-22 11:26:23 -04:00
parent f8b186b24a
commit 4ea3c23e5a
6 changed files with 57 additions and 29 deletions

View File

@@ -122,9 +122,10 @@ angular.module('InventoryFormDefinition', [])
dropdown: {
type: 'DropDown',
label: 'View',
"class": "btn-sm",
ngDisabled: 'host.last_job == null',
options: [
{ ngClick: 'viewJobs(\{\{ host.id \}\})', label: 'Jobs' },
{ ngClick: 'viewJobs(\{\{ host.last_job \}\})', label: 'Latest job' },
{ ngClick: "viewLastEvents(\{\{ host.id \}\}, '\{\{ host.last_job \}\}', '\{\{ host.name \}\}', " +
"'\{\{ host.summary_fields.last_job.name \}\}')", label: 'Latest job events' },
{ ngClick: "viewLastSummary(\{\{ host.id \}\}, '\{\{ host.last_job \}\}', '\{\{ host.name \}\}', " +