aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/projectsManagement
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2020-09-22 14:20:28 +0200
committersonartech <sonartech@sonarsource.com>2020-09-28 20:07:23 +0000
commit71cc0592365fc7ff36694c726c1a8ca4e1fcc6cd (patch)
tree79f66251286871397c898aca6ccb050c5f102f23 /server/sonar-web/src/main/js/apps/projectsManagement
parent7d546a463731e1410ba34225e2e1aa5d9586a3b2 (diff)
downloadsonarqube-71cc0592365fc7ff36694c726c1a8ca4e1fcc6cd.tar.gz
sonarqube-71cc0592365fc7ff36694c726c1a8ca4e1fcc6cd.zip
SONAR-13880 internationalize tooltips
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projectsManagement')
-rw-r--r--server/sonar-web/src/main/js/apps/projectsManagement/CreateProjectForm.tsx13
-rw-r--r--server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/CreateProjectForm-test.tsx.snap57
2 files changed, 0 insertions, 70 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/CreateProjectForm.tsx b/server/sonar-web/src/main/js/apps/projectsManagement/CreateProjectForm.tsx
index 368695adb41..8d69cf678bf 100644
--- a/server/sonar-web/src/main/js/apps/projectsManagement/CreateProjectForm.tsx
+++ b/server/sonar-web/src/main/js/apps/projectsManagement/CreateProjectForm.tsx
@@ -27,7 +27,6 @@ import { translate } from 'sonar-ui-common/helpers/l10n';
import { createProject } from '../../api/components';
import VisibilitySelector from '../../components/common/VisibilitySelector';
import { getProjectUrl } from '../../helpers/urls';
-import UpgradeOrganizationBox from '../create/components/UpgradeOrganizationBox';
interface Props {
onClose: () => void;
@@ -196,18 +195,6 @@ export default class CreateProjectForm extends React.PureComponent<Props, State>
visibility={this.state.visibility}
/>
</div>
- {organization.actions &&
- organization.actions.admin &&
- !organization.canUpdateProjectsVisibilityToPrivate && (
- <div className="spacer-top">
- <UpgradeOrganizationBox
- className="width-100"
- insideModal={true}
- onOrganizationUpgrade={this.props.onOrganizationUpgrade}
- organization={organization}
- />
- </div>
- )}
</div>
<footer className="modal-foot">
diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/CreateProjectForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/CreateProjectForm-test.tsx.snap
index 9879d2fd163..bf16aa754b7 100644
--- a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/CreateProjectForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/CreateProjectForm-test.tsx.snap
@@ -78,25 +78,6 @@ exports[`creates project 1`] = `
visibility="public"
/>
</div>
- <div
- className="spacer-top"
- >
- <UpgradeOrganizationBox
- className="width-100"
- insideModal={true}
- onOrganizationUpgrade={[MockFunction]}
- organization={
- Object {
- "actions": Object {
- "admin": true,
- },
- "key": "org",
- "name": "org",
- "projectVisibility": "public",
- }
- }
- />
- </div>
</div>
<footer
className="modal-foot"
@@ -196,25 +177,6 @@ exports[`creates project 2`] = `
visibility="private"
/>
</div>
- <div
- className="spacer-top"
- >
- <UpgradeOrganizationBox
- className="width-100"
- insideModal={true}
- onOrganizationUpgrade={[MockFunction]}
- organization={
- Object {
- "actions": Object {
- "admin": true,
- },
- "key": "org",
- "name": "org",
- "projectVisibility": "public",
- }
- }
- />
- </div>
</div>
<footer
className="modal-foot"
@@ -314,25 +276,6 @@ exports[`creates project 3`] = `
visibility="private"
/>
</div>
- <div
- className="spacer-top"
- >
- <UpgradeOrganizationBox
- className="width-100"
- insideModal={true}
- onOrganizationUpgrade={[MockFunction]}
- organization={
- Object {
- "actions": Object {
- "admin": true,
- },
- "key": "org",
- "name": "org",
- "projectVisibility": "public",
- }
- }
- />
- </div>
</div>
<footer
className="modal-foot"