15530: Set homeCluster to LoginCluster
[arvados.git] / src / views / process-panel / process-panel.tsx
index b389528033d89dfd282995610592bc76724a57ee..34215f88c917bfcdbe1ddbbbb4dda362e9a06dcf 100644 (file)
@@ -13,6 +13,7 @@ import { ProcessPanel as ProcessPanelState} from '~/store/process-panel/process-
 import { groupBy } from 'lodash';
 import { toggleProcessPanelFilter, navigateToOutput, openWorkflow } from '~/store/process-panel/process-panel-actions';
 import { openProcessInputDialog } from '~/store/processes/process-input-actions';
+import { cancelRunningWorkflow } from '~/store/processes/processes-actions';
 
 const mapStateToProps = ({ router, resources, processPanel }: RootState): ProcessPanelRootDataProps => {
     const pathname = router.location ? router.location.pathname : '';
@@ -36,7 +37,8 @@ const mapDispatchToProps = (dispatch: Dispatch): ProcessPanelRootActionProps =>
     },
     openProcessInputDialog: (uuid) => dispatch<any>(openProcessInputDialog(uuid)),
     navigateToOutput: (uuid) => dispatch<any>(navigateToOutput(uuid)),
-    navigateToWorkflow: (uuid) => dispatch<any>(openWorkflow(uuid))
+    navigateToWorkflow: (uuid) => dispatch<any>(openWorkflow(uuid)),
+    cancelProcess: (uuid) => dispatch<any>(cancelRunningWorkflow(uuid))
 });
 
 export const ProcessPanel = connect(mapStateToProps, mapDispatchToProps)(ProcessPanelRoot);