diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-12-11 17:37:11 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-12-11 17:37:11 +0100 |
commit | 795e76eee298e23079f7e979119defc4c187b833 (patch) | |
tree | 64bf62c1c00d5857d57af6e802567d1875aa3bd8 /web/src/js/components/Header/FlowMenu.jsx | |
parent | b92980efeca831c879c969e673cd60f93d0e3ace (diff) | |
download | mitmproxy-795e76eee298e23079f7e979119defc4c187b833.tar.gz mitmproxy-795e76eee298e23079f7e979119defc4c187b833.tar.bz2 mitmproxy-795e76eee298e23079f7e979119defc4c187b833.zip |
[web] style options menu
The other menus are WIP.
Diffstat (limited to 'web/src/js/components/Header/FlowMenu.jsx')
-rw-r--r-- | web/src/js/components/Header/FlowMenu.jsx | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/web/src/js/components/Header/FlowMenu.jsx b/web/src/js/components/Header/FlowMenu.jsx index e78a49aa..e0c59afe 100644 --- a/web/src/js/components/Header/FlowMenu.jsx +++ b/web/src/js/components/Header/FlowMenu.jsx @@ -18,15 +18,12 @@ FlowMenu.propTypes = { function FlowMenu({ flow, acceptFlow, replayFlow, duplicateFlow, removeFlow, revertFlow }) { return ( <div> - <div className="menu-row"> - <Button disabled={!flow || !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 || !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"/> + <Button disabled={!flow || !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 || !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> ) } |