X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/20f7af812af9bd7094ae71d5a7571cfe556eb968..e032ee615c409d084d84e35ae6d572999105dd22:/src/views/run-process-panel/run-process-panel.tsx

diff --git a/src/views/run-process-panel/run-process-panel.tsx b/src/views/run-process-panel/run-process-panel.tsx
index f284ac72..c5b95c3b 100644
--- a/src/views/run-process-panel/run-process-panel.tsx
+++ b/src/views/run-process-panel/run-process-panel.tsx
@@ -6,12 +6,12 @@ import { Dispatch } from 'redux';
 import { connect } from 'react-redux';
 import { RootState } from '~/store/store';
 import { RunProcessPanelRootDataProps, RunProcessPanelRootActionProps, RunProcessPanelRoot } from '~/views/run-process-panel/run-process-panel-root';
-import { goToStep, setWorkflow } from '~/store/run-process-panel/run-process-panel-actions';
+import { goToStep, runProcess, searchWorkflows, openSetWorkflowDialog } from '~/store/run-process-panel/run-process-panel-actions';
 import { WorkflowResource } from '~/models/workflow';
 
 const mapStateToProps = ({ runProcessPanel }: RootState): RunProcessPanelRootDataProps => {
     return {
-        workflows: runProcessPanel.workflows,
+        workflows: runProcessPanel.searchWorkflows,
         currentStep: runProcessPanel.currentStep,
         selectedWorkflow: runProcessPanel.selectedWorkflow
     };
@@ -22,10 +22,13 @@ const mapDispatchToProps = (dispatch: Dispatch): RunProcessPanelRootActionProps
         dispatch<any>(goToStep(step));
     },
     onSetWorkflow: (workflow: WorkflowResource) => {
-        dispatch<any>(setWorkflow(workflow));
+        dispatch<any>(openSetWorkflowDialog(workflow));
     },
-    onRunProcess: () => {
-        
+    runProcess: () => {
+        dispatch<any>(runProcess);
+    },
+    onSearch: (term: string) => {
+        dispatch<any>(searchWorkflows(term));
     }
 });
 
