aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-06-04 00:58:13 -0700
committerMaximilian Hils <git@maximilianhils.com>2016-06-04 00:58:13 -0700
commite880f532ad3c66ebfded4655b7fa67a367a83cc7 (patch)
tree90435a08acf115059dec47247ea58ddc77abf457 /web/src/js/components
parentc0d08be7a6482c8df8b36881bf104827c8d655d7 (diff)
downloadmitmproxy-e880f532ad3c66ebfded4655b7fa67a367a83cc7.tar.gz
mitmproxy-e880f532ad3c66ebfded4655b7fa67a367a83cc7.tar.bz2
mitmproxy-e880f532ad3c66ebfded4655b7fa67a367a83cc7.zip
web interleave old store and redux flow state
Diffstat (limited to 'web/src/js/components')
-rw-r--r--web/src/js/components/flowtable.js13
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]}