-export class ProcessPanel extends React.Component {
- render() {
- return <div>
- <Grid container>
- <Grid item xs={7}>
- <ProcessInformationCard />
- </Grid>
- </Grid>
- <ProcessSubprocesses />
- </div>;
- }
-}
+const mapDispatchToProps = (dispatch: Dispatch): ProcessPanelRootActionProps => ({
+ onCopyToClipboard: (message: string) => {
+ dispatch<any>(snackbarActions.OPEN_SNACKBAR({
+ message,
+ hideDuration: 2000,
+ kind: SnackbarKind.SUCCESS,
+ }));
+ },
+ onContextMenu: (event, process) => {
+ dispatch<any>(openProcessContextMenu(event, process));
+ },
+ onToggle: status => {
+ dispatch<any>(toggleProcessPanelFilter(status));
+ },
+ cancelProcess: (uuid) => dispatch<any>(cancelRunningWorkflow(uuid)),
+ startProcess: (uuid) => dispatch<any>(startWorkflow(uuid)),
+ onLogFilterChange: (filter) => dispatch(setProcessLogsPanelFilter(filter.value)),
+ navigateToLog: (uuid) => dispatch<any>(navigateToLogCollection(uuid)),
+ loadInputs: (containerRequest) => dispatch<any>(loadInputs(containerRequest)),
+ loadOutputs: (containerRequest) => dispatch<any>(loadOutputs(containerRequest)),
+ loadOutputDefinitions: (containerRequest) => dispatch<any>(loadOutputDefinitions(containerRequest)),
+ updateOutputParams: () => dispatch<any>(updateOutputParams()),
+ loadNodeJson: (containerRequest) => dispatch<any>(loadNodeJson(containerRequest)),
+});