Skip to content

Commit

Permalink
Merge pull request #255 from populationgenomics/exclude-type
Browse files Browse the repository at this point in the history
Add exclude reasons as tag metadata.
  • Loading branch information
cassimons authored Feb 6, 2025
2 parents d5fc51f + cb32e5b commit d148704
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions ui/shared/components/panel/view-fields/TagFieldView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ const MetadataFormGroup = styled(Form.Group).attrs({ inline: true })`
label, .label {
white-space: nowrap;
}
.fluid.selection.dropdown {
width: 100% !important;
}
}
`

const MultiselectField = ({ input, ...props }) => <Multiselect {...input} {...props} />
Expand Down Expand Up @@ -57,6 +57,16 @@ const METADATA_FIELD_PROPS = {
placeholder: 'Select test types or add your own',
...LIST_FORMAT_PROPS,
},
'Exclude Type(s)': {
width: 16,
component: MultiselectField,
fluid: true,
allowAdditions: true,
addValueOptions: true,
options: ['Polymorphism', 'Artefact', 'No phenotypic fit'].map(value => ({ value })),
placeholder: 'Select test types or add your own',
...LIST_FORMAT_PROPS,
},
'HPO Terms': {
width: 16,
component: connect(mapHpoDropdownStateToProps)(MultiselectField),
Expand Down

0 comments on commit d148704

Please sign in to comment.