From 1d4a3ae5a36e586050b849136e4cc443d46573e3 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Wed, 14 Jun 2017 14:58:39 +0100 Subject: [PATCH] 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) --- src/components/views/dialogs/SetEmailDialog.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/views/dialogs/SetEmailDialog.js b/src/components/views/dialogs/SetEmailDialog.js index 6d990a1299..a8b8645236 100644 --- a/src/components/views/dialogs/SetEmailDialog.js +++ b/src/components/views/dialogs/SetEmailDialog.js @@ -85,6 +85,10 @@ export default React.createClass({ this.setState({emailBusy: true}); }, + onCancelled: function() { + this.props.onFinished(false); + }, + onEmailDialogFinished: function(ok) { if (ok) { this.verifyEmailAddress(); @@ -133,7 +137,7 @@ export default React.createClass({ return (