Merge branch 'master' of git.curoverse.com:arvados-workbench2 into 13862-number-array...
[arvados.git] / src / views-components / search-bar / search-bar.tsx
index 5208a7d61c0259e2ae2724ebc9510edf2ed5b403..7c3d2604a7a54072d1c089d256ae39a7c0895d16 100644 (file)
@@ -14,10 +14,12 @@ import {
     saveQuery,
     openSearchView,
     closeSearchView,
-    navigateToItem
+    navigateToItem,
+    editSavedQuery
 } from '~/store/search-bar/search-bar-actions';
 import { SearchBarView } from '~/views-components/search-bar/search-bar-view';
 import { SearchBarAdvanceFormData } from '~/models/search-bar';
+import { searchDataOnEnter } from '../../store/search-bar/search-bar-actions';
 
 const mapStateToProps = ({ searchBar }: RootState) => {
     return {
@@ -38,7 +40,9 @@ const mapDispatchToProps = (dispatch: Dispatch) => ({
     saveQuery: (data: SearchBarAdvanceFormData) => dispatch<any>(saveQuery(data)),
     deleteSavedQuery: (id: number) => dispatch<any>(deleteSavedQuery(id)),
     openSearchView: () => dispatch<any>(openSearchView()),
-    navigateTo: (uuid: string) => dispatch<any>(navigateToItem(uuid))
+    navigateTo: (uuid: string) => dispatch<any>(navigateToItem(uuid)),
+    editSavedQuery: (data: SearchBarAdvanceFormData) => dispatch<any>(editSavedQuery(data)),
+    searchDataOnEnter: (searchValue: string) => dispatch<any>(searchDataOnEnter(searchValue))
 });
 
 export const SearchBar = connect(mapStateToProps, mapDispatchToProps)(SearchBarView);
\ No newline at end of file