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. + + + + + Continue + + + + ); + } + return (
+ You can now return to your account after signing out, + and sign in on other devices. +