From: Stas Vilchik Date: Fri, 3 Feb 2017 10:52:50 +0000 (+0100) Subject: SONAR-8653 hide organization name on organization's projects page X-Git-Tag: 6.3-RC1~228 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9a679cda21dfc990ca59dd7e462bfac574c32a9c;p=sonarqube.git SONAR-8653 hide organization name on organization's projects page --- diff --git a/server/sonar-web/src/main/js/apps/projects/components/AllProjects.js b/server/sonar-web/src/main/js/apps/projects/components/AllProjects.js index a8e7a59543e..6d9d2453124 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/AllProjects.js +++ b/server/sonar-web/src/main/js/apps/projects/components/AllProjects.js @@ -62,7 +62,10 @@ export default class AllProjects extends React.Component { organization={this.props.organization}/>
- + )}

- {project.organization != null && ( + {this.props.organization == null && project.organization != null && ( diff --git a/server/sonar-web/src/main/js/apps/projects/components/ProjectsList.js b/server/sonar-web/src/main/js/apps/projects/components/ProjectsList.js index 4ac5b7ef400..e00b5d29c04 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/ProjectsList.js +++ b/server/sonar-web/src/main/js/apps/projects/components/ProjectsList.js @@ -27,7 +27,8 @@ export default class ProjectsList extends React.Component { static propTypes = { projects: React.PropTypes.arrayOf(React.PropTypes.string), isFavorite: React.PropTypes.bool.isRequired, - isFiltered: React.PropTypes.bool.isRequired + isFiltered: React.PropTypes.bool.isRequired, + organization: React.PropTypes.object }; renderNoProjects () { @@ -51,7 +52,10 @@ export default class ProjectsList extends React.Component {
{projects.length > 0 ? ( projects.map(projectKey => ( - + )) ) : ( this.renderNoProjects()