QuestionDialog pass hasCancelButton to DialogButtons
otherwise E2E Q Dialog has OK and Cancel which makes 0 sense as its just an info dialog Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
e858cf3bcb
commit
7adbff69dc
|
@ -67,9 +67,10 @@ export default React.createClass({
|
||||||
{ this.props.description }
|
{ this.props.description }
|
||||||
</div>
|
</div>
|
||||||
<DialogButtons primaryButton={this.props.button || _t('OK')}
|
<DialogButtons primaryButton={this.props.button || _t('OK')}
|
||||||
cancelButton={this.props.cancelButton}
|
|
||||||
onPrimaryButtonClick={this.onOk}
|
|
||||||
primaryButtonClass={primaryButtonClass}
|
primaryButtonClass={primaryButtonClass}
|
||||||
|
cancelButton={this.props.cancelButton}
|
||||||
|
hasCancel={this.props.hasCancelButton}
|
||||||
|
onPrimaryButtonClick={this.onOk}
|
||||||
focus={this.props.focus}
|
focus={this.props.focus}
|
||||||
onCancel={this.onCancel}
|
onCancel={this.onCancel}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue