Add cancel button to error stage
This commit is contained in:
@@ -181,12 +181,15 @@ export default React.createClass({
|
|||||||
|
|
||||||
let content;
|
let content;
|
||||||
if (this.state.error) {
|
if (this.state.error) {
|
||||||
|
const DialogButtons = sdk.getComponent('views.elements.DialogButtons');
|
||||||
content = <div>
|
content = <div>
|
||||||
<p>{_t("Unable to create key backup")}</p>
|
<p>{_t("Unable to create key backup")}</p>
|
||||||
<div className="mx_Dialog_buttons">
|
<div className="mx_Dialog_buttons">
|
||||||
<button onClick={this._createBackup}>
|
<DialogButtons primaryButton={_t('Retry')}
|
||||||
{_t("Retry")}
|
onPrimaryButtonClick={this._createBackup}
|
||||||
</button>
|
hasCancel={true}
|
||||||
|
onCancel={this._onCancel}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>;
|
</div>;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user