diff options
Diffstat (limited to 'web/src/js/components/flowtable.js')
-rw-r--r-- | web/src/js/components/flowtable.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/web/src/js/components/flowtable.js b/web/src/js/components/flowtable.js index f03b8ec0..1a616eee 100644 --- a/web/src/js/components/flowtable.js +++ b/web/src/js/components/flowtable.js @@ -1,5 +1,6 @@ import React from "react"; import ReactDOM from "react-dom"; +import {connect} from 'react-redux' import classNames from "classnames"; import {reverseString} from "../utils.js"; import _ from "lodash"; @@ -36,6 +37,14 @@ function FlowRow(props) { ); } +const FlowRowContainer = connect( + (state, ownProps) => ({ + flow: state.flows.all.byId[ownProps.flowId] + }), + dispatch => ({ + }) +)(FlowRow); + class FlowTableHead extends React.Component { static propTypes = { @@ -196,9 +205,9 @@ class FlowTable extends React.Component { <tbody> <tr style={{ height: vScroll.paddingTop }}></tr> {flows.map(flow => ( - <FlowRow + <FlowRowContainer + flowId={flow.id} key={flow.id} - flow={flow} columns={flowtable_columns} selected={flow === this.props.selected} highlighted={highlight && highlight[flow.id]} |