organization={this.props.organization}/>
</aside>
<div className="page-main">
- <ProjectsListContainer isFavorite={this.props.isFavorite} isFiltered={isFiltered}/>
+ <ProjectsListContainer
+ isFavorite={this.props.isFavorite}
+ isFiltered={isFiltered}
+ organization={this.props.organization}/>
<ProjectsListFooterContainer
query={this.state.query}
isFavorite={this.props.isFavorite}
export default class ProjectCard extends React.Component {
static propTypes = {
- project: React.PropTypes.object
+ project: React.PropTypes.object,
+ organization: React.PropTypes.object
};
render () {
<FavoriteContainer className="spacer-right" componentKey={project.key}/>
)}
<h2 className="project-card-name">
- {project.organization != null && (
+ {this.props.organization == null && project.organization != null && (
<span className="text-normal">
<Organization organizationKey={project.organization}/>
</span>
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 () {
<div className="projects-list">
{projects.length > 0 ? (
projects.map(projectKey => (
- <ProjectCardContainer key={projectKey} projectKey={projectKey}/>
+ <ProjectCardContainer
+ key={projectKey}
+ projectKey={projectKey}
+ organization={this.props.organization}/>
))
) : (
this.renderNoProjects()