aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/create/organization/CreateOrganization.tsx
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2018-12-18 11:53:09 +0100
committerSonarTech <sonartech@sonarsource.com>2018-12-20 11:43:28 +0100
commit3fc77718cf0e14555367dd8f3492205db3f5ce8c (patch)
tree5dc1c8bb7d11ad33f17054d64abfb37e7a28736d /server/sonar-web/src/main/js/apps/create/organization/CreateOrganization.tsx
parent90ed118a35ce03cd51794271ff4865e4e9c46584 (diff)
downloadsonarqube-3fc77718cf0e14555367dd8f3492205db3f5ce8c.tar.gz
sonarqube-3fc77718cf0e14555367dd8f3492205db3f5ce8c.zip
SONARCLOUD-264 Use same empty organization space in projects page
Diffstat (limited to 'server/sonar-web/src/main/js/apps/create/organization/CreateOrganization.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/create/organization/CreateOrganization.tsx7
1 files changed, 2 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/apps/create/organization/CreateOrganization.tsx b/server/sonar-web/src/main/js/apps/create/organization/CreateOrganization.tsx
index 7ccc09db294..e368675861c 100644
--- a/server/sonar-web/src/main/js/apps/create/organization/CreateOrganization.tsx
+++ b/server/sonar-web/src/main/js/apps/create/organization/CreateOrganization.tsx
@@ -205,7 +205,7 @@ export class CreateOrganization extends React.PureComponent<Props & WithRouterPr
this.updateUrlQuery({ almInstallId: undefined, almKey: undefined });
};
- handleOrgCreated = (organization: string, justCreated = true) => {
+ handleOrgCreated = (organization: string) => {
this.props.skipOnboarding();
if (this.isStoredTimestampValid(ORGANIZATION_IMPORT_REDIRECT_TO_PROJECT_TIMESTAMP)) {
this.props.router.push({
@@ -213,10 +213,7 @@ export class CreateOrganization extends React.PureComponent<Props & WithRouterPr
state: { organization, tab: this.state.almOrganization ? 'auto' : 'manual' }
});
} else {
- this.props.router.push({
- pathname: getOrganizationUrl(organization),
- state: { justCreated }
- });
+ this.props.router.push({ pathname: getOrganizationUrl(organization) });
}
};