From 9a679cda21dfc990ca59dd7e462bfac574c32a9c Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 3 Feb 2017 11:52:50 +0100 Subject: [PATCH] SONAR-8653 hide organization name on organization's projects page --- .../src/main/js/apps/projects/components/AllProjects.js | 5 ++++- .../src/main/js/apps/projects/components/ProjectCard.js | 5 +++-- .../src/main/js/apps/projects/components/ProjectsList.js | 8 ++++++-- 3 files changed, 13 insertions(+), 5 deletions(-) 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() -- 2.39.5