hide groups that host is already associated with on relevant lists

This commit is contained in:
John Mitchell 2019-03-20 11:34:05 -04:00
parent 50079c0441
commit 7791c5f5ba
No known key found for this signature in database
GPG Key ID: FE6A9B5BD4EB5C94

View File

@ -23,11 +23,14 @@
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_queryset.not__id = $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;
} 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);