[ARVADOS-WORKBENCH2] updated: 1.2.0-564-g20cde4f

Git user git at public.curoverse.com
Mon Oct 8 05:07:57 EDT 2018


Summary of changes:
 src/views-components/main-app-bar/main-app-bar.tsx | 7 +------
 src/views-components/search-bar/search-bar.tsx     | 5 +++++
 2 files changed, 6 insertions(+), 6 deletions(-)

       via  20cde4f6023a374d00ba401b86b60a257932683c (commit)
      from  244bfe2909565499833b7e2ce387adfd81e1cba6 (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 20cde4f6023a374d00ba401b86b60a257932683c
Author: Janicki Artur <artur.janicki at contractors.roche.com>
Date:   Mon Oct 8 11:07:47 2018 +0200

    clean code after merge
    
    Feature #14307
    
    Arvados-DCO-1.1-Signed-off-by: Janicki Artur <artur.janicki at contractors.roche.com>

diff --git a/src/views-components/main-app-bar/main-app-bar.tsx b/src/views-components/main-app-bar/main-app-bar.tsx
index dfa7ee2..d94b2a0 100644
--- a/src/views-components/main-app-bar/main-app-bar.tsx
+++ b/src/views-components/main-app-bar/main-app-bar.tsx
@@ -58,12 +58,7 @@ export const MainAppBar = withStyles(styles)(
                         xs={6}
                         container
                         alignItems="center">
-                        {/* {props.user && <SearchBar
-                            value={props.searchText}
-                            onSearch={props.onSearch}
-                            debounce={props.searchDebounce}
-                        />
-                        } */}
+                        {props.user && <SearchBar /> }
                     </Grid>
                     <Grid
                         item
diff --git a/src/views-components/search-bar/search-bar.tsx b/src/views-components/search-bar/search-bar.tsx
index affd5e4..5f51654 100644
--- a/src/views-components/search-bar/search-bar.tsx
+++ b/src/views-components/search-bar/search-bar.tsx
@@ -10,12 +10,17 @@ import { SearchBarView } from '~/views-components/search-bar/search-bar-view';
 
 const mapStateToProps = ({ searchBar }: RootState) => {
     return {
+        // ToDo: add value to store
+        value: '',
         currentView: searchBar.currentView,
         open: searchBar.open
     };
 };
 
 const mapDispatchToProps = (dispatch: Dispatch) => ({
+    onSearch: (terms: string) => {
+        console.log('search: ', terms);
+    },
     onSetView: (currentView: string) => dispatch(goToView(currentView)),
     openView: () => dispatch<any>(searchBarActions.OPEN_SEARCH_VIEW()),
     closeView: () => dispatch<any>(searchBarActions.CLOSE_SEARCH_VIEW())

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list