togglePopup={this.props.togglePopup}
/>
</li>
- {!isSecurityHotspot && (
- <li className="issue-meta">
- <IssueAssign
- canAssign={canAssign}
- isOpen={this.props.currentPopup === 'assign' && canAssign}
- issue={issue}
- onAssign={this.props.onAssign}
- togglePopup={this.props.togglePopup}
- />
- </li>
- )}
+ <li className="issue-meta">
+ <IssueAssign
+ canAssign={canAssign}
+ isOpen={this.props.currentPopup === 'assign' && canAssign}
+ issue={issue}
+ onAssign={this.props.onAssign}
+ togglePopup={this.props.togglePopup}
+ />
+ </li>
{!isSecurityHotspot && issue.effort && (
<li className="issue-meta">
<span className="issue-meta-label">
togglePopup={[MockFunction]}
/>
</li>
+ <li
+ className="issue-meta"
+ >
+ <IssueAssign
+ canAssign={false}
+ isOpen={false}
+ issue={
+ Object {
+ "actions": Array [],
+ "component": "main.js",
+ "componentLongName": "main.js",
+ "componentQualifier": "FIL",
+ "componentUuid": "foo1234",
+ "creationDate": "2017-03-01T09:36:01+0100",
+ "flows": Array [],
+ "fromHotspot": false,
+ "key": "AVsae-CQS-9G3txfbFN2",
+ "line": 25,
+ "message": "Reduce the number of conditional operators (4) used in the expression",
+ "organization": "myorg",
+ "project": "myproject",
+ "projectKey": "foo",
+ "projectName": "Foo",
+ "projectOrganization": "org",
+ "rule": "javascript:S1067",
+ "ruleName": "foo",
+ "secondaryLocations": Array [],
+ "severity": "MAJOR",
+ "status": "OPEN",
+ "textRange": Object {
+ "endLine": 26,
+ "endOffset": 15,
+ "startLine": 25,
+ "startOffset": 0,
+ },
+ "transitions": Array [],
+ "type": "SECURITY_HOTSPOT",
+ }
+ }
+ onAssign={[MockFunction]}
+ togglePopup={[MockFunction]}
+ />
+ </li>
</ul>
<ul
className="list-inline"