mirror of
https://github.com/ansible/awx.git
synced 2026-04-09 12:09:20 -02:30
hide groups that host is already associated with on relevant lists
This commit is contained in:
@@ -23,11 +23,14 @@
|
|||||||
page_size: 5
|
page_size: 5
|
||||||
};
|
};
|
||||||
|
|
||||||
if($state.params.group_id) {
|
if ($state.params.group_id) {
|
||||||
$scope.associate_group_default_params.not__id = $state.params.group_id;
|
$scope.associate_group_default_params.not__id = $state.params.group_id;
|
||||||
$scope.associate_group_queryset.not__id = $state.params.group_id;
|
$scope.associate_group_queryset.not__id = $state.params.group_id;
|
||||||
$scope.associate_group_default_params.not__parents = $state.params.group_id;
|
$scope.associate_group_default_params.not__parents = $state.params.group_id;
|
||||||
$scope.associate_group_queryset.not__parents = $state.params.group_id;
|
$scope.associate_group_queryset.not__parents = $state.params.group_id;
|
||||||
|
} else if ($state.params.host_id) {
|
||||||
|
$scope.associate_group_default_params.not__hosts = $state.params.host_id;
|
||||||
|
$scope.associate_group_queryset.not__hosts = $state.params.host_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
let list = _.cloneDeep(GroupList);
|
let list = _.cloneDeep(GroupList);
|
||||||
|
|||||||
Reference in New Issue
Block a user