[ARVADOS-WORKBENCH2] updated: 1.2.0-953-g2340918

Git user git at public.curoverse.com
Tue Nov 27 07:35:23 EST 2018


Summary of changes:
 src/views-components/form-fields/search-bar-form-fields.tsx | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

       via  2340918b3b75be5e9c60ced6136265216eac2d74 (commit)
      from  56ee0a472ab8c77df51f6bb19d616d5f81ffde96 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 2340918b3b75be5e9c60ced6136265216eac2d74
Author: Daniel Kos <daniel.kos at contractors.roche.com>
Date:   Tue Nov 27 13:35:19 2018 +0100

    Connect project tree with redux-form
    
    Feature #14820
    
    Arvados-DCO-1.1-Signed-off-by: Daniel Kos <daniel.kos at contractors.roche.com>

diff --git a/src/views-components/form-fields/search-bar-form-fields.tsx b/src/views-components/form-fields/search-bar-form-fields.tsx
index e05b1d3..da0b12b 100644
--- a/src/views-components/form-fields/search-bar-form-fields.tsx
+++ b/src/views-components/form-fields/search-bar-form-fields.tsx
@@ -12,6 +12,8 @@ import { ClusterObjectType } from '~/models/search-bar';
 import { HomeTreePicker } from '~/views-components/projects-tree-picker/home-tree-picker';
 import { SEARCH_BAR_ADVANCE_FORM_PICKER_ID } from '~/store/search-bar/search-bar-actions';
 import { SearchBarAdvancedPropertiesView } from '~/views-components/search-bar/search-bar-advanced-properties-view';
+import { TreeItem } from "~/components/tree/tree";
+import { ProjectsTreePickerItem } from "~/views-components/projects-tree-picker/generic-projects-tree-picker";
 
 export const SearchBarTypeField = () =>
     <Field
@@ -42,7 +44,13 @@ export const SearchBarProjectField = () =>
 
 const ProjectsPicker = (props: WrappedFieldProps) =>
     <div style={{ height: '100px', display: 'flex', flexDirection: 'column', overflow: 'overlay' }}>
-        <HomeTreePicker pickerId={SEARCH_BAR_ADVANCE_FORM_PICKER_ID} />
+        <HomeTreePicker
+            pickerId={SEARCH_BAR_ADVANCE_FORM_PICKER_ID}
+            toggleItemActive={
+                (_: any, { id }: TreeItem<ProjectsTreePickerItem>) => {
+                    props.input.onChange(id);
+                }
+            }/>
     </div>;
 
 export const SearchBarTrashField = () =>

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list