aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/issue
diff options
context:
space:
mode:
authorPascal Mugnier <pascal.mugnier@sonarsource.com>2018-03-08 09:30:47 +0100
committerGitHub <noreply@github.com>2018-03-08 09:30:47 +0100
commitd334ffbc6ab7bec1ad6a4c32df2007f6367ad03d (patch)
tree101089cba9ad1d67fe8ed349dbe8586cdb809936 /server/sonar-web/src/main/js/components/issue
parent89562bc1246dd24f82e624ed6a319e5f42169980 (diff)
downloadsonarqube-d334ffbc6ab7bec1ad6a4c32df2007f6367ad03d.tar.gz
sonarqube-d334ffbc6ab7bec1ad6a4c32df2007f6367ad03d.zip
SONAR-7449 Selecting multiple issues with shift+click (#3127)
Diffstat (limited to 'server/sonar-web/src/main/js/components/issue')
-rw-r--r--server/sonar-web/src/main/js/components/issue/Issue.d.ts2
-rw-r--r--server/sonar-web/src/main/js/components/issue/Issue.js6
-rw-r--r--server/sonar-web/src/main/js/components/issue/IssueView.js4
3 files changed, 6 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/components/issue/Issue.d.ts b/server/sonar-web/src/main/js/components/issue/Issue.d.ts
index 5abf041951b..6930914f170 100644
--- a/server/sonar-web/src/main/js/components/issue/Issue.d.ts
+++ b/server/sonar-web/src/main/js/components/issue/Issue.d.ts
@@ -27,7 +27,7 @@ interface IssueProps {
displayLocationsLink?: boolean;
issue: IssueType;
onChange: (issue: IssueType) => void;
- onCheck?: (issueKey: string) => void;
+ onCheck?: (issueKey: string, event: Event) => void;
onClick: (issueKey: string) => void;
onFilter?: (property: string, issue: IssueType) => void;
onPopupToggle: (issue: string, popupName: string, open?: boolean) => void;
diff --git a/server/sonar-web/src/main/js/components/issue/Issue.js b/server/sonar-web/src/main/js/components/issue/Issue.js
index 0100ba16b5b..47bf09dab76 100644
--- a/server/sonar-web/src/main/js/components/issue/Issue.js
+++ b/server/sonar-web/src/main/js/components/issue/Issue.js
@@ -35,7 +35,7 @@ type Props = {|
displayLocationsLink?: boolean;
issue: IssueType,
onChange: IssueType => void,
- onCheck?: string => void,
+ onCheck?: (issue: string, event: Event) => void,
onClick: string => void,
onFilter?: (property: string, issue: IssueType) => void,
onPopupToggle: (issue: string, popupName: string, open: ?boolean) => void,
@@ -108,9 +108,9 @@ export default class Issue extends React.PureComponent {
this.togglePopup('edit-tags');
return false;
});
- key('space', 'issues', () => {
+ key('space', 'issues', (event /*: Event*/) => {
if (this.props.onCheck) {
- this.props.onCheck(this.props.issue.key);
+ this.props.onCheck(this.props.issue.key, event);
return false;
}
return undefined;
diff --git a/server/sonar-web/src/main/js/components/issue/IssueView.js b/server/sonar-web/src/main/js/components/issue/IssueView.js
index d6f3ab8335e..b7a658e77ba 100644
--- a/server/sonar-web/src/main/js/components/issue/IssueView.js
+++ b/server/sonar-web/src/main/js/components/issue/IssueView.js
@@ -37,7 +37,7 @@ type Props = {|
issue: Issue,
onAssign: string => void,
onChange: Issue => void,
- onCheck?: string => void,
+ onCheck?: (issue: string, event: Event) => void,
onClick: string => void,
onFail: Error => void,
onFilter?: (property: string, issue: Issue) => void,
@@ -53,7 +53,7 @@ export default class IssueView extends React.PureComponent {
event.preventDefault();
event.stopPropagation();
if (this.props.onCheck) {
- this.props.onCheck(this.props.issue.key);
+ this.props.onCheck(this.props.issue.key, event);
}
};