diff options
author | Clemens <cle1000.cb@gmail.com> | 2016-07-22 19:07:53 +0200 |
---|---|---|
committer | Clemens <cle1000.cb@gmail.com> | 2016-07-22 19:07:53 +0200 |
commit | f578bf512248c609296d2ff0ea2007a6feac561f (patch) | |
tree | 7c58f14f09df0699cc788cde84e60b76d5f863e3 /web/src/js/components/FlowView/ToggleEdit.jsx | |
parent | 70ca10b423de4a57a395798aa94189ba4da7840f (diff) | |
download | mitmproxy-f578bf512248c609296d2ff0ea2007a6feac561f.tar.gz mitmproxy-f578bf512248c609296d2ff0ea2007a6feac561f.tar.bz2 mitmproxy-f578bf512248c609296d2ff0ea2007a6feac561f.zip |
file upload updates contentview, editable contentloader, diffs on upload
Diffstat (limited to 'web/src/js/components/FlowView/ToggleEdit.jsx')
-rw-r--r-- | web/src/js/components/FlowView/ToggleEdit.jsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/src/js/components/FlowView/ToggleEdit.jsx b/web/src/js/components/FlowView/ToggleEdit.jsx index cf197998..9016348e 100644 --- a/web/src/js/components/FlowView/ToggleEdit.jsx +++ b/web/src/js/components/FlowView/ToggleEdit.jsx @@ -10,11 +10,11 @@ ToggleEdit.propTypes = { stopEdit: PropTypes.func.isRequired, } -function ToggleEdit({ isEdit, startEdit, stopEdit, flow, old_flow }) { +function ToggleEdit({ isEdit, startEdit, stopEdit, flow, modifiedFlow }) { return ( <div className="edit-flow-container"> {isEdit ? - <a className="edit-flow" onClick={() => stopEdit(flow, old_flow)}> + <a className="edit-flow" onClick={() => stopEdit(flow, modifiedFlow)}> <i className="fa fa-check"/> </a> : @@ -29,8 +29,8 @@ function ToggleEdit({ isEdit, startEdit, stopEdit, flow, old_flow }) { export default connect( state => ({ isEdit: !!state.ui.flow.modifiedFlow, - flow: state.ui.flow.modifiedFlow || state.flows.byId[state.flows.selected[0]], - old_flow: state.flows.byId[state.flows.selected[0]] + modifiedFlow: state.ui.flow.modifiedFlow || state.flows.byId[state.flows.selected[0]], + flow: state.flows.byId[state.flows.selected[0]] }), { startEdit, |