diff options
author | Clemens <cle1000.cb@gmail.com> | 2016-06-07 00:40:36 +0200 |
---|---|---|
committer | Clemens <cle1000.cb@gmail.com> | 2016-06-07 11:07:25 +0200 |
commit | 1aac283e2309339877907d2e08e79a06fbea1898 (patch) | |
tree | 585efd70cf9b7436c5fef2fddc7d0fb4a9ee9f46 /web/src/js/components/flowtable.js | |
parent | ff2129773fba4cbcaca93f2c604a2fa72955868f (diff) | |
download | mitmproxy-1aac283e2309339877907d2e08e79a06fbea1898.tar.gz mitmproxy-1aac283e2309339877907d2e08e79a06fbea1898.tar.bz2 mitmproxy-1aac283e2309339877907d2e08e79a06fbea1898.zip |
moved redux state injection closer to child
Diffstat (limited to 'web/src/js/components/flowtable.js')
-rw-r--r-- | web/src/js/components/flowtable.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web/src/js/components/flowtable.js b/web/src/js/components/flowtable.js index 89bcfc39..23469827 100644 --- a/web/src/js/components/flowtable.js +++ b/web/src/js/components/flowtable.js @@ -9,6 +9,7 @@ import AutoScroll from "./helpers/AutoScroll"; import {calcVScroll} from "./helpers/VirtualScroll"; import flowtable_columns from "./flowtable-columns.js"; import Filt from "../filt/filt"; +import {setSort} from "../ducks/flows"; FlowRow.propTypes = { @@ -94,8 +95,11 @@ FlowTableHead.propTypes = { }; const FlowTableHeadContainer = connect( - (state) => ({ + state => ({ sort: state.flows.sort + }), + dispatch => ({ + loc: (sort) => dispatch(setSort(sort)), }) )(FlowTableHead) |