AC-502 Finally figured out how to fix the awToolTip directive so that it watches a variable for tool tip text changes and updates the tool tip text. Pass in the variable name using badgeTipWatch. Used on home/hosts page and inventory/N/hosts page when toggling the enabled flag.

This commit is contained in:
Chris Houseknecht
2013-11-11 22:24:15 +00:00
parent 353858cf28
commit 5a62ba3a32
8 changed files with 82 additions and 46 deletions

View File

@@ -16,6 +16,7 @@ angular.module('HomeHostListDefinition', [])
selectTitle: 'Add Existing Hosts',
editTitle: 'Hosts',
index: true,
hover: true,
well: true,
fields: {
@@ -30,7 +31,7 @@ angular.module('HomeHostListDefinition', [])
sourceModel: 'inventory',
sourceField: 'name',
columnClass: 'col-lg-3 col-md3 col-sm-2',
linkTo: "\{\{ '/#/inventories/' + group.inventory \}\}"
linkTo: "\{\{ '/#/inventories/?name=' + host.summary_fields.inventory.name \}\}"
},
active_failures: {
label: 'Job Status',
@@ -51,17 +52,11 @@ angular.module('HomeHostListDefinition', [])
badgePlacement: 'left',
badgeToolTip: "\{\{ host.enabledToolTip \}\}",
badgeTipPlacement: "top",
badgeTipWatch: "host.enabledToolTip",
ngClick: "toggle_host_enabled(\{\{ host.id \}\}, \{\{ host.has_inventory_sources \}\})",
searchable: false,
showValue: false
},
groups: {
label: 'Groups',
searchable: true,
sourceModel: 'groups',
sourceField: 'name',
nosort: true
},
enabled: {
label: 'Disabled?',
searchSingleValue: true,