X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/c4621fbe523cc60770f4176141b83083f1f3802a..ef3b2c15f10a3fea50170bc346105d909145a98f:/src/views/process-log-panel/process-log-panel.tsx diff --git a/src/views/process-log-panel/process-log-panel.tsx b/src/views/process-log-panel/process-log-panel.tsx index 2b2d6842..d578e784 100644 --- a/src/views/process-log-panel/process-log-panel.tsx +++ b/src/views/process-log-panel/process-log-panel.tsx @@ -2,13 +2,11 @@ // // SPDX-License-Identifier: AGPL-3.0 -import * as React from 'react'; import { RootState } from '~/store/store'; import { connect } from 'react-redux'; import { getProcess } from '~/store/processes/process'; import { Dispatch } from 'redux'; import { openProcessContextMenu } from '~/store/context-menu/context-menu-actions'; -import { matchProcessLogRoute } from '~/routes/routes'; import { ProcessLogPanelRootDataProps, ProcessLogPanelRootActionProps, ProcessLogPanelRoot } from './process-log-panel-root'; import { getProcessPanelLogs } from '~/store/process-logs-panel/process-logs-panel'; import { setProcessLogsPanelFilter } from '~/store/process-logs-panel/process-logs-panel-actions'; @@ -39,10 +37,10 @@ const mapStateToProps = (state: RootState): ProcessLogPanelRootDataProps => { }; const mapDispatchToProps = (dispatch: Dispatch): ProcessLogPanelRootActionProps => ({ - onContextMenu: (event: React.MouseEvent) => { - dispatch(openProcessContextMenu(event)); + onContextMenu: (event, process) => { + dispatch(openProcessContextMenu(event, process)); }, - onChange: (filter: FilterOption) => { + onChange: filter => { dispatch(setProcessLogsPanelFilter(filter.value)); } });