@@ -21,7 +21,7 @@ import { CustomPagination } from "../../commons/custom_fields/CustomPagination";
2121import { SeverityField } from "../../commons/custom_fields/SeverityField" ;
2222import { feature_exploit_information , has_attribute , humanReadableDate } from "../../commons/functions" ;
2323import ListHeader from "../../commons/layout/ListHeader" ;
24- import { AutocompleteInputMedium } from "../../commons/layout/themes" ;
24+ import { AutocompleteInputMedium , AutocompleteInputWide } from "../../commons/layout/themes" ;
2525import { getSettingListSize } from "../../commons/user_settings/functions" ;
2626import {
2727 AGE_CHOICES ,
@@ -67,26 +67,26 @@ function listFilters() {
6767 < AutocompleteInputMedium optionText = "name" />
6868 </ ReferenceInput > ,
6969 < TextInput source = "branch_name" label = "Branch / Version name" alwaysOn /> ,
70- // <ReferenceInput
71- // label="Service"
72- // source="origin_service"
73- // queryOptions={{ meta: { api_resource: "service_names" } }}
74- // reference="services"
75- // sort={{ field: "name", order: "ASC" }}
76- // >
77- // <AutocompleteInputWide label="Service" optionText="name_with_product" />
78- // </ReferenceInput>,
70+ < ReferenceInput
71+ label = "Service"
72+ source = "origin_service"
73+ queryOptions = { { meta : { api_resource : "service_names" } } }
74+ reference = "services"
75+ sort = { { field : "name" , order : "ASC" } }
76+ >
77+ < AutocompleteInputWide label = "Service" optionText = "name_with_product" />
78+ </ ReferenceInput > ,
7979 < TextInput source = "origin_component_name_version" label = "Component" />
8080 ) ;
8181 if ( feature_exploit_information ( ) ) {
8282 filters . push ( < NullableBooleanInput source = "cve_known_exploited" label = "CVE exploited" alwaysOn /> ) ;
8383 }
8484 filters . push (
8585 < TextInput source = "origin_docker_image_name_tag_short" label = "Container" /> ,
86- // <TextInput source="origin_endpoint_hostname" label="Host" />,
87- // <TextInput source="origin_source_file" label="Source" />,
88- // <TextInput source="origin_cloud_qualified_resource" label="Cloud resource" />,
89- // <TextInput source="origin_kubernetes_qualified_resource" label="Kubernetes resource" />,
86+ < TextInput source = "origin_endpoint_hostname" label = "Host" /> ,
87+ < TextInput source = "origin_source_file" label = "Source" /> ,
88+ < TextInput source = "origin_cloud_qualified_resource" label = "Cloud resource" /> ,
89+ < TextInput source = "origin_kubernetes_qualified_resource" label = "Kubernetes resource" /> ,
9090 < TextInput source = "scanner" alwaysOn /> ,
9191 < AutocompleteInputMedium source = "age" choices = { AGE_CHOICES } alwaysOn /> ,
9292 < NullableBooleanInput source = "has_potential_duplicates" label = "Duplicates" alwaysOn /> ,
0 commit comments