aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/organizations
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2018-10-24 17:42:35 +0200
committerSonarTech <sonartech@sonarsource.com>2018-11-16 20:21:05 +0100
commit5abfbcd37980abad5ba8d127582476d1d58b7358 (patch)
tree14b5bf951e8dcc7405669ecd259f8bda3fe3c8a8 /server/sonar-web/src/main/js/apps/organizations
parente7b860647b22904459d19a2bb5f8713d20322ef0 (diff)
downloadsonarqube-5abfbcd37980abad5ba8d127582476d1d58b7358.tar.gz
sonarqube-5abfbcd37980abad5ba8d127582476d1d58b7358.zip
SONAR-11322 Display manual/auto tab on project and organization page depending on context
Diffstat (limited to 'server/sonar-web/src/main/js/apps/organizations')
-rw-r--r--server/sonar-web/src/main/js/apps/organizations/components/OrganizationJustCreated.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/organizations/components/__tests__/OrganizationJustCreated-test.tsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/organizations/components/OrganizationJustCreated.tsx b/server/sonar-web/src/main/js/apps/organizations/components/OrganizationJustCreated.tsx
index c77fabe8c26..c1ad4439f60 100644
--- a/server/sonar-web/src/main/js/apps/organizations/components/OrganizationJustCreated.tsx
+++ b/server/sonar-web/src/main/js/apps/organizations/components/OrganizationJustCreated.tsx
@@ -37,7 +37,7 @@ export class OrganizationJustCreated extends React.PureComponent<Props & WithRou
};
handleNewProjectClick = () => {
- this.context.openProjectOnboarding(this.props.organization.key);
+ this.context.openProjectOnboarding(this.props.organization);
};
handleAddMembersClick = () => {
diff --git a/server/sonar-web/src/main/js/apps/organizations/components/__tests__/OrganizationJustCreated-test.tsx b/server/sonar-web/src/main/js/apps/organizations/components/__tests__/OrganizationJustCreated-test.tsx
index cc6298cd304..ef6c0c10ea6 100644
--- a/server/sonar-web/src/main/js/apps/organizations/components/__tests__/OrganizationJustCreated-test.tsx
+++ b/server/sonar-web/src/main/js/apps/organizations/components/__tests__/OrganizationJustCreated-test.tsx
@@ -37,7 +37,7 @@ it('should create new project', () => {
context: { openProjectOnboarding }
});
click(wrapper.find('Button').first());
- expect(openProjectOnboarding).toBeCalledWith('foo');
+ expect(openProjectOnboarding).toBeCalledWith({ key: 'foo', name: 'Foo' });
});
it('should add members', () => {