X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e140179bec632ad7dc3b6a232c09377693eea36e..424f5418a6fd9f49baa1cc79bf0b51f9ab65ac58:/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 725d705b64..dd7b08509e 100644
--- a/src/views/run-process-panel/run-process-panel.tsx
+++ b/src/views/run-process-panel/run-process-panel.tsx
@@ -6,17 +6,26 @@ 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 } 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.workflows,
+        currentStep: runProcessPanel.currentStep,
+        selectedWorkflow: runProcessPanel.selectedWorkflow
+    };
 };
 
 const mapDispatchToProps = (dispatch: Dispatch): RunProcessPanelRootActionProps => ({
     onSetStep: (step: number) => {
         dispatch<any>(goToStep(step));
+    },
+    onSetWorkflow: (workflow: WorkflowResource) => {
+        dispatch<any>(setWorkflow(workflow));
+    },
+    runProcess: () => {
+        console.log('run process!');
     }
 });
 
