});
interface SidePanelDataProps {
+ location: any;
currentItemId: string;
}
export const SidePanelButton = withStyles(styles)(
connect((state: RootState) => ({
- currentItemId: getProperty(PROJECT_PANEL_CURRENT_UUID)(state.properties)
+ currentItemId: getProperty(PROJECT_PANEL_CURRENT_UUID)(state.properties),
+ location: state.router.location
}))(
class extends React.Component<SidePanelProps> {
}
handleRunProcessClick = () => {
+ const location = this.props.location;
+ this.props.dispatch(runProcessPanelActions.RESET_RUN_PROCESS_PANEL());
+ this.props.dispatch(runProcessPanelActions.SET_PROCESS_PATHNAME(location.pathname));
this.props.dispatch(runProcessPanelActions.SET_PROCESS_OWNER_UUID(this.props.currentItemId));
+
this.props.dispatch<any>(navigateToRunProcess);
}