From 9fc57786f139221073d02de79257507f6a5d1d80 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Mon, 22 May 2017 16:11:52 +0100 Subject: [PATCH] Add warm-fuzzy for successful password entry --- .../views/dialogs/SetPasswordDialog.js | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/components/views/dialogs/SetPasswordDialog.js b/src/components/views/dialogs/SetPasswordDialog.js index 2db64d2f0c..fb586cd072 100644 --- a/src/components/views/dialogs/SetPasswordDialog.js +++ b/src/components/views/dialogs/SetPasswordDialog.js @@ -34,10 +34,17 @@ export default React.createClass({ getInitialState: function() { return { error: null, + success: false, }; }, _onPasswordChanged: function() { + this.setState({ + success: true, + }); + }, + + _onContinueClicked: function() { this.props.onFinished(true); }, @@ -58,6 +65,30 @@ export default React.createClass({ const ChangePassword = sdk.getComponent('views.settings.ChangePassword'); const Spinner = sdk.getComponent('elements.Spinner'); + if (this.state.success) { + return ( + +
+

+ You can now return to your account after signing out, + and sign in on other devices. +

+
+
+ +
+
+ ); + } + return (