mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 23:16:01 -03:30
Remove status icons from host nested groups
This commit is contained in:
committed by
Ryan Petrello
parent
568606d2c8
commit
107d2da845
@@ -70,18 +70,6 @@
|
|||||||
group.isSelected = true;
|
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(){
|
$scope.createGroup = function(){
|
||||||
|
|||||||
@@ -26,10 +26,6 @@
|
|||||||
$scope[`${list.iterator}_dataset`] = Dataset.data;
|
$scope[`${list.iterator}_dataset`] = Dataset.data;
|
||||||
$scope[list.name] = $scope[`${list.iterator}_dataset`].results;
|
$scope[list.name] = $scope[`${list.iterator}_dataset`].results;
|
||||||
|
|
||||||
$scope.$watchCollection(list.name, function(){
|
|
||||||
_.forEach($scope[list.name], buildStatusIndicators);
|
|
||||||
});
|
|
||||||
|
|
||||||
$scope.$on('selectedOrDeselected', function(e, value) {
|
$scope.$on('selectedOrDeselected', function(e, value) {
|
||||||
let item = value.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() {
|
$scope.associateGroup = function() {
|
||||||
$state.go('.associate');
|
$state.go('.associate');
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user