aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/Header/FileMenu.jsx
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2017-10-29 15:01:50 +0100
committerGitHub <noreply@github.com>2017-10-29 15:01:50 +0100
commit731b40ce0f31e64e9bff87e00d7bfbee12138d47 (patch)
tree3b072f0518b14bdc6ffd94dacb31532cb4e89558 /web/src/js/components/Header/FileMenu.jsx
parentb32dff7520b67f6f6a93627363d91d4f30cad956 (diff)
parent9d514330cad64e589987b5e539809ae95d14e137 (diff)
downloadmitmproxy-731b40ce0f31e64e9bff87e00d7bfbee12138d47.tar.gz
mitmproxy-731b40ce0f31e64e9bff87e00d7bfbee12138d47.tar.bz2
mitmproxy-731b40ce0f31e64e9bff87e00d7bfbee12138d47.zip
Merge pull request #2608 from mhils/web
[web] minor improvements, move options editor
Diffstat (limited to 'web/src/js/components/Header/FileMenu.jsx')
-rw-r--r--web/src/js/components/Header/FileMenu.jsx9
1 files changed, 1 insertions, 8 deletions
diff --git a/web/src/js/components/Header/FileMenu.jsx b/web/src/js/components/Header/FileMenu.jsx
index 5cb8e507..c88efcd8 100644
--- a/web/src/js/components/Header/FileMenu.jsx
+++ b/web/src/js/components/Header/FileMenu.jsx
@@ -11,7 +11,6 @@ FileMenu.propTypes = {
clearFlows: PropTypes.func.isRequired,
loadFlows: PropTypes.func.isRequired,
saveFlows: PropTypes.func.isRequired,
- openModal: PropTypes.func.isRequired,
}
FileMenu.onNewClick = (e, clearFlows) => {
@@ -20,7 +19,7 @@ FileMenu.onNewClick = (e, clearFlows) => {
clearFlows()
}
-export function FileMenu ({clearFlows, loadFlows, saveFlows, openModal}) {
+export function FileMenu ({clearFlows, loadFlows, saveFlows}) {
return (
<Dropdown className="pull-left" btnClass="special" text="mitmproxy">
<a href="#" onClick={e => FileMenu.onNewClick(e, clearFlows)}>
@@ -38,12 +37,7 @@ export function FileMenu ({clearFlows, loadFlows, saveFlows, openModal}) {
</a>
<HideInStatic>
- <a href="#" onClick={e => { e.preventDefault(); openModal(); }}>
- <i className="fa fa-fw fa-cog"></i>
- &nbsp;Options
- </a>
<Divider/>
-
<a href="http://mitm.it/" target="_blank">
<i className="fa fa-fw fa-external-link"></i>
&nbsp;Install Certificates...
@@ -59,6 +53,5 @@ export default connect(
clearFlows: flowsActions.clear,
loadFlows: flowsActions.upload,
saveFlows: flowsActions.download,
- openModal: () => modalActions.setActiveModal('OptionModal'),
}
)(FileMenu)