From fcec859cbe59807d8b6d2e973c85d392fa13a8cf Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Fri, 9 Oct 2015 09:52:36 -0600 Subject: [PATCH] Refresh session, close popup after registration --- src/components/navigation/navigation.jsx | 7 ++++++- src/components/registration/registration.jsx | 13 ++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/components/navigation/navigation.jsx b/src/components/navigation/navigation.jsx index 6c3181357..c129ad9db 100644 --- a/src/components/navigation/navigation.jsx +++ b/src/components/navigation/navigation.jsx @@ -96,6 +96,10 @@ var Navigation = React.createClass({ closeRegistration: function () { this.setState({'registrationOpen': false}); }, + completeRegistration: function () { + window.refreshSession(); + this.closeRegistration(); + }, render: function () { var classes = classNames({ 'inner': true, @@ -151,7 +155,8 @@ var Navigation = React.createClass({ , + onRequestClose={this.closeRegistration} + onRegistrationDone={this.completeRegistration} />,