mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-03 11:17:24 +00:00
[web] minor fixes
This commit is contained in:
parent
01f28bbccb
commit
51d3fb8ea1
2 changed files with 2 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ class PureOptionModal extends Component {
|
|||
}
|
||||
|
||||
componentWillUnmount(){
|
||||
this.props.save()
|
||||
// this.props.save()
|
||||
}
|
||||
|
||||
render() {
|
||||
|
|
|
|||
|
|
@ -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}/> )}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue