Created a way to remove table row borders. Created a way to add an 'active-row' class to selected table border. Injecting hosts list into same scope as groups list. Streamlined host/job status message.

This commit is contained in:
Chris Houseknecht
2014-01-09 16:18:02 +00:00
parent ec5686770b
commit e6c0032444
8 changed files with 67 additions and 41 deletions

View File

@@ -186,7 +186,7 @@ angular.module('InventoryTree', ['Utilities', 'RestServices', 'GroupsHelper'])
var all_hosts = {
name: 'All Hosts', id: 1, group_id: null, parent: 0, description: '', show: true, ngicon: null,
has_children: false, related: {}, selected_class: '' };
has_children: false, related: {}, selected_class: '', show_failures: false };
groups.push(all_hosts);
function buildGroups(tree_data, parent, level) {
@@ -228,7 +228,7 @@ angular.module('InventoryTree', ['Utilities', 'RestServices', 'GroupsHelper'])
launch_tooltip: stat['launch_tip'],
launch_class: stat['launch_class'],
hosts_status_tip: hosts_status['tooltip'],
hosts_status_link: hosts_status['link'],
show_failures: hosts_status['failures'],
hosts_status_class: hosts_status['class'],
selected_class: '',
show: true
@@ -249,7 +249,7 @@ angular.module('InventoryTree', ['Utilities', 'RestServices', 'GroupsHelper'])
Rest.get()
.success( function(data, status, headers, config) {
buildGroups(data, 0, 0);
//console.log(groups);
console.log(groups);
if (refresh) {
scope.groups = groups;
scope.$emit('groupTreeRefreshed');