X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/00a61a4484185dc98daa92af5f189779cc10ad3c..33e245270a23dd593c8a068253456976a2bc23c9:/src/views/run-process-panel/run-process-panel.tsx?ds=sidebyside

diff --git a/src/views/run-process-panel/run-process-panel.tsx b/src/views/run-process-panel/run-process-panel.tsx
index e6bdf0f7..c8411ad7 100644
--- a/src/views/run-process-panel/run-process-panel.tsx
+++ b/src/views/run-process-panel/run-process-panel.tsx
@@ -6,17 +6,29 @@ 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 } from '~/store/run-process-panel/run-process-panel-actions';
+import { goToStep, setWorkflow, runProcess, searchWorkflows, openSetWorkflowDialog } from '~/store/run-process-panel/run-process-panel-actions';
+import { WorkflowResource } from '~/models/workflow';
 
 const mapStateToProps = ({ runProcessPanel }: RootState): RunProcessPanelRootDataProps => {
-   return {
-       currentStep: runProcessPanel.currentStep
-   };
+    return {
+        workflows: runProcessPanel.searchWorkflows,
+        currentStep: runProcessPanel.currentStep,
+        selectedWorkflow: runProcessPanel.selectedWorkflow
+    };
 };
 
 const mapDispatchToProps = (dispatch: Dispatch): RunProcessPanelRootActionProps => ({
-    onClick: (step: number) => {
+    onSetStep: (step: number) => {
         dispatch<any>(goToStep(step));
+    },
+    onSetWorkflow: (workflow: WorkflowResource) => {
+        dispatch<any>(openSetWorkflowDialog(workflow));
+    },
+    runProcess: () => {
+        dispatch<any>(runProcess);
+    },
+    onSearch: (term: string) => {
+        dispatch<any>(searchWorkflows(term));
     }
 });
 
