aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2017-10-25 13:34:41 +0200
committerMaximilian Hils <git@maximilianhils.com>2017-10-25 13:35:22 +0200
commit51d3fb8ea14423331f39dcf615493dab34ee81a8 (patch)
treef770b2948bdf57cf51704948d58083875cdabc2e /web
parent01f28bbccb12fa40d9d6679112d0078a3276aa97 (diff)
downloadmitmproxy-51d3fb8ea14423331f39dcf615493dab34ee81a8.tar.gz
mitmproxy-51d3fb8ea14423331f39dcf615493dab34ee81a8.tar.bz2
mitmproxy-51d3fb8ea14423331f39dcf615493dab34ee81a8.zip
[web] minor fixes
Diffstat (limited to 'web')
-rw-r--r--web/src/js/components/Modal/OptionModal.jsx2
-rw-r--r--web/src/js/components/common/Button.jsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/web/src/js/components/Modal/OptionModal.jsx b/web/src/js/components/Modal/OptionModal.jsx
index 82ef8350..fed0048d 100644
--- a/web/src/js/components/Modal/OptionModal.jsx
+++ b/web/src/js/components/Modal/OptionModal.jsx
@@ -53,7 +53,7 @@ class PureOptionModal extends Component {
}
componentWillUnmount(){
- this.props.save()
+ // this.props.save()
}
render() {
diff --git a/web/src/js/components/common/Button.jsx b/web/src/js/components/common/Button.jsx
index e02ae010..02dab305 100644
--- a/web/src/js/components/common/Button.jsx
+++ b/web/src/js/components/common/Button.jsx
@@ -12,7 +12,7 @@ Button.propTypes = {
export default function Button({ onClick, children, icon, disabled, className, title }) {
return (
<div className={classnames(className, 'btn btn-default')}
- onClick={!disabled && onClick}
+ onClick={disabled ? undefined : onClick}
disabled={disabled}
title={title}>
{icon && (<i className={"fa fa-fw " + icon}/> )}