You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
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>
This commit is contained in:
@@ -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}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user