Merge branch 'master'
[arvados-workbench2.git] / src / store / run-process-panel / run-process-panel-actions.ts
index a58eff8ad03ad45d1db963788226754dd97fa912..7112f715b4c449d2ee7aa15ac6786f783a4c0d2b 100644 (file)
@@ -21,6 +21,7 @@ export const runProcessPanelActions = unionize({
     SET_CURRENT_STEP: ofType<number>(),
     SET_WORKFLOWS: ofType<WorkflowResource[]>(),
     SET_SELECTED_WORKFLOW: ofType<WorkflowResource>(),
+    SEARCH_WORKFLOWS: ofType<string>()
 });
 
 export interface RunProcessSecondStepDataFormProps {
@@ -90,4 +91,5 @@ const normalizeInputKeys = (inputs: WorkflowInputsData): WorkflowInputsData =>
     Object.keys(inputs).reduce((normalizedInputs, key) => ({
         ...normalizedInputs,
         [key.split('/').slice(1).join('/')]: inputs[key],
-    }), {});
\ No newline at end of file
+    }), {});
+export const searchWorkflows = (term: string) => runProcessPanelActions.SEARCH_WORKFLOWS(term);