From: Michal Klobukowski Date: Mon, 17 Dec 2018 16:56:55 +0000 (+0100) Subject: Merge branch 'master' into 14603-add-controlled-vocabulary-to-advanced-search X-Git-Tag: 1.4.0~71^2~16^2~5 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/3ddd45b007768a39591cd116b4a213cd39019e0c?hp=b6f9b49e6fed67626ae969a6864f45f002fcfd47 Merge branch 'master' into 14603-add-controlled-vocabulary-to-advanced-search refs #14603 Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski --- diff --git a/src/components/autocomplete/autocomplete.tsx b/src/components/autocomplete/autocomplete.tsx index b250c7b8..52918c34 100644 --- a/src/components/autocomplete/autocomplete.tsx +++ b/src/components/autocomplete/autocomplete.tsx @@ -152,6 +152,15 @@ export class Autocomplete extends React.Component (_: any, { id }: TreeItem) => { props.input.onChange(id); } - }/> + } /> ; export const SearchBarTrashField = () => @@ -74,17 +78,22 @@ export const SearchBarPropertiesField = () => name="properties" component={SearchBarAdvancedPropertiesView} />; -export const SearchBarKeyField = () => - ; +export const SearchBarKeyField = connectVocabulary( + ({ vocabulary }: VocabularyProp) => + ); -export const SearchBarValueField = () => - ; +export const SearchBarValueField = compose( + connectVocabulary, + formValues({ propertyKey: 'key' }) +)( + (props: PropertyValueFieldProps) => + ); export const SearchBarSaveSearchField = () => ); -const PropertyKeyInput = ({ vocabulary, ...props }: WrappedFieldProps & VocabularyProp) => +export const PropertyKeyInput = ({ vocabulary, ...props }: WrappedFieldProps & VocabularyProp) => ); -const PropertyValueInput = ({ vocabulary, propertyKey, ...props }: WrappedFieldProps & PropertyValueFieldProps) => +export const PropertyValueInput = ({ vocabulary, propertyKey, ...props }: WrappedFieldProps & PropertyValueFieldProps) =>