mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Merge pull request #3538 from picklesrus/join-welcome-homepage
Take user to the homepage when finishing the join flow (unless they c…
This commit is contained in:
commit
1ae7052e50
2 changed files with 5 additions and 2 deletions
|
@ -50,7 +50,7 @@ class WelcomeStep extends React.Component {
|
||||||
innerClassName="join-flow-inner-welcome-step"
|
innerClassName="join-flow-inner-welcome-step"
|
||||||
nextButton={this.props.createProjectOnComplete ? (
|
nextButton={this.props.createProjectOnComplete ? (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<FormattedMessage id="registration.makeProject" />
|
<FormattedMessage id="general.getStarted" />
|
||||||
<img
|
<img
|
||||||
className="join-flow-next-button-arrow"
|
className="join-flow-next-button-arrow"
|
||||||
src="/svgs/project/r-arrow.svg"
|
src="/svgs/project/r-arrow.svg"
|
||||||
|
|
|
@ -105,7 +105,10 @@ module.exports.handleRegistrationRequested = () => ({
|
||||||
|
|
||||||
module.exports.handleCompleteRegistration = createProject => (dispatch => {
|
module.exports.handleCompleteRegistration = createProject => (dispatch => {
|
||||||
if (createProject) {
|
if (createProject) {
|
||||||
window.location = '/projects/editor/?tutorial=getStarted';
|
// TODO: Ideally this would take you to the editor with the getting started
|
||||||
|
// tutorial open. We need to do some extra work to wait for the user
|
||||||
|
// to be logged in before we try creating a project due to replication lag.
|
||||||
|
window.location = '/';
|
||||||
} else {
|
} else {
|
||||||
dispatch(sessionActions.refreshSession());
|
dispatch(sessionActions.refreshSession());
|
||||||
dispatch(module.exports.setRegistrationOpen(false));
|
dispatch(module.exports.setRegistrationOpen(false));
|
||||||
|
|
Loading…
Reference in a new issue