[web] minor fixes

This commit is contained in:
Maximilian Hils 2017-10-25 13:34:41 +02:00
parent 01f28bbccb
commit 51d3fb8ea1
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ class PureOptionModal extends Component {
}
componentWillUnmount(){
this.props.save()
// this.props.save()
}
render() {

View file

@ -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}/> )}