diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-06-26 01:45:45 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-06-26 01:45:45 -0700 |
commit | 3eb2d04aac114ca4b3adf2211b8c0f8d98c9798c (patch) | |
tree | 9d0351c1588d030d9ea11245555eccaf128c2e9b /web/src/js/components/Header/FlowMenu.jsx | |
parent | 1c240d919a4f856bc356515d4a146b29365cd1d5 (diff) | |
download | mitmproxy-3eb2d04aac114ca4b3adf2211b8c0f8d98c9798c.tar.gz mitmproxy-3eb2d04aac114ca4b3adf2211b8c0f8d98c9798c.tar.bz2 mitmproxy-3eb2d04aac114ca4b3adf2211b8c0f8d98c9798c.zip |
minor fixes
Diffstat (limited to 'web/src/js/components/Header/FlowMenu.jsx')
-rw-r--r-- | web/src/js/components/Header/FlowMenu.jsx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/web/src/js/components/Header/FlowMenu.jsx b/web/src/js/components/Header/FlowMenu.jsx index ba1dcbcb..8d13dd6a 100644 --- a/web/src/js/components/Header/FlowMenu.jsx +++ b/web/src/js/components/Header/FlowMenu.jsx @@ -10,16 +10,16 @@ FlowMenu.propTypes = { flow: PropTypes.object.isRequired, } -function FlowMenu({ flow, onAccept, onReplay, onDuplicate, onRemove, onRevert }) { +function FlowMenu({ flow, acceptFlow, replayFlow, duplicateFlow, removeFlow, revertFlow }) { return ( <div> <div className="menu-row"> - <Button disabled={!flow.intercepted} title="[a]ccept intercepted flow" text="Accept" icon="fa-play" onClick={() => onAccept(flow)} /> - <Button title="[r]eplay flow" text="Replay" icon="fa-repeat" onClick={() => onReplay(flow)} /> - <Button title="[D]uplicate flow" text="Duplicate" icon="fa-copy" onClick={() => onDuplicate(flow)} /> - <Button title="[d]elete flow" text="Delete" icon="fa-trash" onClick={() => onRemove(flow)}/> - <Button disabled={!flow.modified} title="revert changes to flow [V]" text="Revert" icon="fa-history" onClick={() => onRevert(flow)} /> + <Button disabled={!flow.intercepted} title="[a]ccept intercepted flow" text="Accept" icon="fa-play" onClick={() => acceptFlow(flow)} /> + <Button title="[r]eplay flow" text="Replay" icon="fa-repeat" onClick={() => replayFlow(flow)} /> + <Button title="[D]uplicate flow" text="Duplicate" icon="fa-copy" onClick={() => duplicateFlow(flow)} /> + <Button title="[d]elete flow" text="Delete" icon="fa-trash" onClick={() => removeFlow(flow)}/> + <Button disabled={!flow.modified} title="revert changes to flow [V]" text="Revert" icon="fa-history" onClick={() => revertFlow(flow)} /> <Button title="download" text="Download" icon="fa-download" onClick={() => window.location = MessageUtils.getContentURL(flow, flow.response)}/> </div> <div className="clearfix"/> @@ -32,10 +32,10 @@ export default connect( flow: state.flows.list.byId[state.flows.views.main.selected[0]], }), { - onAccept: flowsActions.accept, - onReplay: flowsActions.replay, - onDuplicate: flowsActions.duplicate, - onRemove: flowsActions.remove, - onRevert: flowsActions.revert, + acceptFlow: flowsActions.accept, + replayFlow: flowsActions.replay, + duplicateFlow: flowsActions.duplicate, + removeFlow: flowsActions.remove, + revertFlow: flowsActions.revert, } )(FlowMenu) |