mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 12:41:19 -03:30
Remove status icons from group nested groups
This commit is contained in:
parent
2bc6521eee
commit
ec1c2a8391
@ -35,10 +35,6 @@
|
||||
|
||||
$scope.inventory_id = $stateParams.inventory_id;
|
||||
|
||||
$scope.$watchCollection(list.name, function(){
|
||||
_.forEach($scope[list.name], processRow);
|
||||
});
|
||||
|
||||
$scope.$on('selectedOrDeselected', function(e, value) {
|
||||
let item = value.value;
|
||||
|
||||
@ -57,30 +53,6 @@
|
||||
|
||||
}
|
||||
|
||||
function processRow(group){
|
||||
if (group === undefined || group === null) {
|
||||
group = {};
|
||||
}
|
||||
|
||||
angular.forEach($scope.groupsSelected, function(selectedGroup){
|
||||
if(selectedGroup.id === group.id) {
|
||||
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.disassociateGroup = function(group){
|
||||
$scope.toDisassociate = {};
|
||||
angular.extend($scope.toDisassociate, group);
|
||||
|
||||
@ -19,15 +19,11 @@
|
||||
layoutClass: 'List-staticColumnLayout--groups',
|
||||
staticColumns: [
|
||||
{
|
||||
field: 'failed_hosts',
|
||||
content: {
|
||||
label: '',
|
||||
nosort: true,
|
||||
mode: 'all',
|
||||
iconOnly: true,
|
||||
awToolTip: "{{ nested_group.hosts_status_tip }}",
|
||||
dataPlacement: "top",
|
||||
icon: "{{ 'fa icon-job-' + nested_group.hosts_status_class }}",
|
||||
columnClass: 'status-column'
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user