From 107d2da845204bbcd093010bb86f448601fc60d4 Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Thu, 5 Dec 2019 15:56:13 -0500 Subject: [PATCH] Remove status icons from host nested groups --- .../groups/list/groups-list.controller.js | 12 ---------- .../host-nested-groups-list.controller.js | 22 ------------------- 2 files changed, 34 deletions(-) diff --git a/awx/ui/client/src/inventories-hosts/inventories/related/groups/list/groups-list.controller.js b/awx/ui/client/src/inventories-hosts/inventories/related/groups/list/groups-list.controller.js index f375e757eb..866547b495 100644 --- a/awx/ui/client/src/inventories-hosts/inventories/related/groups/list/groups-list.controller.js +++ b/awx/ui/client/src/inventories-hosts/inventories/related/groups/list/groups-list.controller.js @@ -70,18 +70,6 @@ group.isSelected = true; } }); - - let hosts_status; - - hosts_status = GetHostsStatusMsg({ - active_failures: group.hosts_with_active_failures, - total_hosts: group.total_hosts, - inventory_id: $scope.inventory_id, - group_id: group.id - }); - _.assign(group, - {hosts_status_tip: hosts_status.tooltip}, - {hosts_status_class: hosts_status.class}); } $scope.createGroup = function(){ diff --git a/awx/ui/client/src/inventories-hosts/inventories/related/hosts/related/nested-groups/host-nested-groups-list.controller.js b/awx/ui/client/src/inventories-hosts/inventories/related/hosts/related/nested-groups/host-nested-groups-list.controller.js index 72a841dc76..8a962f39d4 100644 --- a/awx/ui/client/src/inventories-hosts/inventories/related/hosts/related/nested-groups/host-nested-groups-list.controller.js +++ b/awx/ui/client/src/inventories-hosts/inventories/related/hosts/related/nested-groups/host-nested-groups-list.controller.js @@ -26,10 +26,6 @@ $scope[`${list.iterator}_dataset`] = Dataset.data; $scope[list.name] = $scope[`${list.iterator}_dataset`].results; - $scope.$watchCollection(list.name, function(){ - _.forEach($scope[list.name], buildStatusIndicators); - }); - $scope.$on('selectedOrDeselected', function(e, value) { let item = value.value; @@ -48,24 +44,6 @@ } - function buildStatusIndicators(group){ - if (group === undefined || group === null) { - group = {}; - } - - let hosts_status; - - hosts_status = GetHostsStatusMsg({ - active_failures: group.hosts_with_active_failures, - total_hosts: group.total_hosts, - inventory_id: $scope.inventory_id, - group_id: group.id - }); - _.assign(group, - {hosts_status_tip: hosts_status.tooltip}, - {hosts_status_class: hosts_status.class}); - } - $scope.associateGroup = function() { $state.go('.associate'); };