* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-import { noop } from 'lodash';
import * as React from 'react';
import { getSources } from '../../../api/components';
import Issue from '../../../components/issue/Issue';
issue={issueToDisplay}
key={issueToDisplay.key}
onChange={this.props.onIssueChange}
- onClick={noop}
onPopupToggle={this.props.onIssuePopupToggle}
openPopup={
this.props.issuePopup && this.props.issuePopup.issue === issueToDisplay.key
<Issue
issue={issue}
onChange={this.props.onIssueChange}
- onClick={noop}
onPopupToggle={this.props.onIssuePopupToggle}
openPopup={issuePopup && issuePopup.issue === issue.key ? issuePopup.name : undefined}
selected={true}
padding-bottom: var(--gridSize);
background-color: var(--issueBgColor);
transition: all 0.3s ease, border 0s ease;
+ cursor: pointer;
+}
+
+.issue.no-click {
+ cursor: initial;
}
.issue.hotspot {
issue: TypeIssue;
onChange: (issue: TypeIssue) => void;
onCheck?: (issue: string) => void;
- onClick: (issueKey: string) => void;
+ onClick?: (issueKey: string) => void;
onFilter?: (property: string, issue: TypeIssue) => void;
onPopupToggle: (issue: string, popupName: string, open?: boolean) => void;
openPopup?: string;
onAssign: (login: string) => void;
onChange: (issue: Issue) => void;
onCheck?: (issue: string) => void;
- onClick: (issueKey: string) => void;
+ onClick?: (issueKey: string) => void;
onFilter?: (property: string, issue: Issue) => void;
selected: boolean;
togglePopup: (popup: string, show: boolean | void) => void;
const hasCheckbox = this.props.onCheck != null;
const issueClass = classNames('issue', {
+ 'no-click': this.props.onClick === undefined,
hotspot: issue.type === 'SECURITY_HOTSPOT',
'issue-with-checkbox': hasCheckbox,
selected: this.props.selected