diff options
author | Jason <jason.daurus@gmail.com> | 2016-06-22 00:49:21 +0800 |
---|---|---|
committer | Jason <jason.daurus@gmail.com> | 2016-06-22 00:49:21 +0800 |
commit | 0cab9ef1fae927f9ef365526262bef32bd1b526b (patch) | |
tree | e3d64264e0239f21e71b1c2132443001fdadd363 /web/src/js/components/Header/FlowMenu.jsx | |
parent | 9cb5b0af9db83d84af0bdb45d56a9755b400c212 (diff) | |
parent | 4576dbf8aac8996f7f87320aba3132b657b02278 (diff) | |
download | mitmproxy-0cab9ef1fae927f9ef365526262bef32bd1b526b.tar.gz mitmproxy-0cab9ef1fae927f9ef365526262bef32bd1b526b.tar.bz2 mitmproxy-0cab9ef1fae927f9ef365526262bef32bd1b526b.zip |
Merge remote-tracking branch 'origin/master' into websocket
Conflicts:
mitmproxy/web/static/app.js
web/src/js/components/ProxyApp.jsx
Diffstat (limited to 'web/src/js/components/Header/FlowMenu.jsx')
-rw-r--r-- | web/src/js/components/Header/FlowMenu.jsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/web/src/js/components/Header/FlowMenu.jsx b/web/src/js/components/Header/FlowMenu.jsx index 96f42652..abecf0dc 100644 --- a/web/src/js/components/Header/FlowMenu.jsx +++ b/web/src/js/components/Header/FlowMenu.jsx @@ -15,10 +15,12 @@ function FlowMenu({ flow }) { return ( <div> <div className="menu-row"> - <Button disabled title="[r]eplay flow" text="Replay" icon="fa-repeat" onClick={FlowActions.replay.bind(null, flow)} /> - <Button title="[D]uplicate flow" text="Duplicate" icon="fa-copy" onClick={FlowActions.duplicate.bind(null, flow)} /> - <Button title="[d]elete flow" text="Delete" icon="fa-trash" onClick={FlowActions.delete.bind(null, flow)}/> - <Button title="download" text="Download" icon="fa-download" onClick={() => window.location = MessageUtils.getContentURL(flow, flow.response)}/> + <Button disabled={!flow.intercepted} title="[a]ccept intercepted flow" text="Accept" icon="fa-play" onClick={() => FlowActions.accept(flow)} /> + <Button title="[r]eplay flow" text="Replay" icon="fa-repeat" onClick={FlowActions.replay.bind(null, flow)} /> + <Button title="[D]uplicate flow" text="Duplicate" icon="fa-copy" onClick={FlowActions.duplicate.bind(null, flow)} /> + <Button title="[d]elete flow" text="Delete" icon="fa-trash" onClick={FlowActions.delete.bind(null, flow)}/> + <Button disabled={!flow.modified} title="revert changes to flow [V]" text="Revert" icon="fa-history" onClick={() => FlowActions.revert(flow)} /> + <Button title="download" text="Download" icon="fa-download" onClick={() => window.location = MessageUtils.getContentURL(flow, flow.response)}/> </div> <div className="clearfix"/> </div> |