Give password confirmation correct title, description
Fixes https://github.com/vector-im/riot-web/issues/4311 This was due to `BaseDialog` calling `onFinished` with a mouse event instead of `false` (and it was assumed to call with `true/false`, but doesn't)
This commit is contained in:
parent
302233db90
commit
1d4a3ae5a3
1 changed files with 5 additions and 1 deletions
|
@ -85,6 +85,10 @@ export default React.createClass({
|
||||||
this.setState({emailBusy: true});
|
this.setState({emailBusy: true});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onCancelled: function() {
|
||||||
|
this.props.onFinished(false);
|
||||||
|
},
|
||||||
|
|
||||||
onEmailDialogFinished: function(ok) {
|
onEmailDialogFinished: function(ok) {
|
||||||
if (ok) {
|
if (ok) {
|
||||||
this.verifyEmailAddress();
|
this.verifyEmailAddress();
|
||||||
|
@ -133,7 +137,7 @@ export default React.createClass({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BaseDialog className="mx_SetEmailDialog"
|
<BaseDialog className="mx_SetEmailDialog"
|
||||||
onFinished={this.props.onFinished}
|
onFinished={this.onCancelled}
|
||||||
title={this.props.title}
|
title={this.props.title}
|
||||||
>
|
>
|
||||||
<div className="mx_Dialog_content">
|
<div className="mx_Dialog_content">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue