}
renderList() {
- const { component, currentUser } = this.props;
+ const { component, currentUser, organization } = this.props;
const { issues, openIssue, paging } = this.state;
const selectedIndex = this.getSelectedIndex();
const selectedIssue = selectedIndex != null ? issues[selectedIndex] : null;
onIssueChange={this.handleIssueChange}
onIssueCheck={currentUser.isLoggedIn ? this.handleIssueCheck : undefined}
onIssueClick={this.openIssue}
+ organization={organization}
selectedIssue={selectedIssue}
/>}
{this.renderBulkChange(openIssue)}
{openIssue != null
? <div className="pull-left width-60">
- <ComponentBreadcrumbs component={component} issue={openIssue} />
+ <ComponentBreadcrumbs
+ component={component}
+ issue={openIssue}
+ organization={this.props.organization}
+ />
</div>
: <PageActions
loading={this.state.loading}
type Props = {
component?: Component,
- issue: Object
+ issue: Object,
+ organization?: { key: string }
};
export default class ComponentBreadcrumbs extends React.PureComponent {
props: Props;
render() {
- const { component, issue } = this.props;
+ const { component, issue, organization } = this.props;
- const displayOrganization = component == null || ['VW', 'SVW'].includes(component.qualifier);
+ const displayOrganization =
+ !organization && (component == null || ['VW', 'SVW'].includes(component.qualifier));
const displayProject =
component == null || !['TRK', 'BRC', 'DIR'].includes(component.qualifier);
const displaySubProject = component == null || !['BRC', 'DIR'].includes(component.qualifier);
onIssueChange: Issue => void,
onIssueCheck?: string => void,
onIssueClick: string => void,
+ organization?: { key: string },
selectedIssue: ?Issue
|};
onCheck={this.props.onIssueCheck}
onClick={this.props.onIssueClick}
onFilterChange={this.props.onFilterChange}
+ organization={this.props.organization}
previousIssue={index > 0 ? issues[index - 1] : null}
selected={selectedIssue != null && selectedIssue.key === issue.key}
/>
onCheck?: string => void,
onClick: string => void,
onFilterChange: (changes: {}) => void,
+ organization?: { key: string },
previousIssue: ?Object,
selected: boolean
|};
<div className="issues-workspace-list-item">
{displayComponent &&
<div className="issues-workspace-list-component">
- <ComponentBreadcrumbs component={component} issue={this.props.issue} />
+ <ComponentBreadcrumbs
+ component={component}
+ issue={this.props.issue}
+ organization={this.props.organization}
+ />
</div>}
<Issue
checked={this.props.checked}
}
renderName(project: string): React.Element<*> | string {
- const { referencedComponents } = this.props;
+ const { organization, referencedComponents } = this.props;
return referencedComponents[project]
? <span>
<QualifierIcon className="little-spacer-right" qualifier="TRK" />
- <Organization link={false} organizationKey={referencedComponents[project].organization} />
+ {!organization &&
+ <Organization
+ link={false}
+ organizationKey={referencedComponents[project].organization}
+ />}
{referencedComponents[project].name}
</span>
: <span>
export default class OrganizationNavigation extends React.PureComponent {
props: {
- currentUser: { isLoggedIn: boolean, showOnboardingTutorial: true },
+ currentUser: { isLoggedIn: boolean },
location: { pathname: string },
organization: Organization
};
return this;
}
+ public IssuesPage componentsShouldNotContain(String path) {
+ this.getIssuesPathComponents().forEach(element -> element.shouldNotHave(text(path)));
+ return this;
+ }
+
public IssuesPage bulkChangeOpen() {
$("#issues-bulk-change").shouldBe(visible).click();
$("#bulk-change-form").shouldBe(visible);
nav.openIssues(org1.getKey())
.issuesCount(2)
- .componentsShouldContain(org1.getName());
+ .componentsShouldNotContain(org1.getName());
nav.openIssues()
- .issuesCount(4);
+ .issuesCount(4)
+ .componentsShouldContain("Org ");
}
private String provisionProject(Organizations.Organization organization) {