From 427bc6b8124d501d4d759f5e0a58c11458c79be3 Mon Sep 17 00:00:00 2001 From: Grégoire Aubert Date: Thu, 25 Oct 2018 15:37:19 +0200 Subject: SONAR-11327 Redirect user after organization creation depending on context * Correctly handle OnboardingModal for create organization page --- .../src/main/js/apps/tutorials/onboarding/OnboardingModal.tsx | 6 +++++- .../__tests__/__snapshots__/OnboardingModal-test.tsx.snap | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'server/sonar-web/src/main/js/apps/tutorials') diff --git a/server/sonar-web/src/main/js/apps/tutorials/onboarding/OnboardingModal.tsx b/server/sonar-web/src/main/js/apps/tutorials/onboarding/OnboardingModal.tsx index 60a134428aa..d7a8aa94acd 100644 --- a/server/sonar-web/src/main/js/apps/tutorials/onboarding/OnboardingModal.tsx +++ b/server/sonar-web/src/main/js/apps/tutorials/onboarding/OnboardingModal.tsx @@ -51,6 +51,10 @@ export class OnboardingModal extends React.PureComponent { } } + handleOpenProjectOnboarding = () => { + this.props.onOpenProjectOnboarding(); + }; + render() { if (!isLoggedIn(this.props.currentUser)) { return null; @@ -68,7 +72,7 @@ export class OnboardingModal extends React.PureComponent {

{translate('onboarding.header.description')}

-