X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/d53f2e8a10937bff1bb16a4e37e060daddbf3fa5..da5e144c103d5abb2bca727f40a14e5da052264e:/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 68917c2c..9fb5a218 100644
--- a/src/views/run-process-panel/run-process-panel.tsx
+++ b/src/views/run-process-panel/run-process-panel.tsx
@@ -4,14 +4,14 @@
 
 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, runProcess } from '~/store/run-process-panel/run-process-panel-actions';
-import { WorkflowResource } from '~/models/workflow';
+import { RootState } from 'store/store';
+import { RunProcessPanelRootDataProps, RunProcessPanelRootActionProps, RunProcessPanelRoot } from 'views/run-process-panel/run-process-panel-root';
+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));
     },
     runProcess: () => {
         dispatch<any>(runProcess);
+    },
+    onSearch: (term: string) => {
+        dispatch<any>(searchWorkflows(term));
     }
 });
 
