diff --git a/js/component/modal.js b/js/component/modal.js index c22d074c9..b1bb5065f 100644 --- a/js/component/modal.js +++ b/js/component/modal.js @@ -5,12 +5,16 @@ var Modal = React.createClass({ onAborted: React.PropTypes.func, confirmButtonLabel: React.PropTypes.string, abortButtonLabel: React.PropTypes.string, + confirmButtonDisabled: React.PropTypes.bool, + abortButtonDisabled: React.PropTypes.bool, }, getDefaultProps: function() { return { type: 'alert', confirmButtonLabel: 'OK', abortButtonLabel: 'Cancel', + confirmButtonDisabled: false, + abortButtonDisabled: false, }; }, render: function() { @@ -36,9 +40,9 @@ var Modal = React.createClass({ var buttons = (
{this.props.type == 'confirm' - ? + ? : null} - +
); }