aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-06-09 15:02:20 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-06-13 15:11:07 +0200
commit9bbf5c3623172cec5573487249747cf240cd4f21 (patch)
tree090d6da39700776f2d136a145935dedadc8b05fc /server/sonar-web
parent5cc073853d45bc73da7eb06cc6c86e53af17a1c8 (diff)
downloadsonarqube-9bbf5c3623172cec5573487249747cf240cd4f21.tar.gz
sonarqube-9bbf5c3623172cec5573487249747cf240cd4f21.zip
Fix new flow typed issues
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/app/components/ProjectContainer.js2
-rw-r--r--server/sonar-web/src/main/js/apps/account/organizations/CreateOrganizationForm.js2
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/components/DateFilter.js2
-rw-r--r--server/sonar-web/src/main/js/apps/issues/components/App.js4
-rw-r--r--server/sonar-web/src/main/js/apps/permissions/project/components/App.js2
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityApp.js2
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddCustomEventForm.js2
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddEventForm.js2
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddVersionForm.js2
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/forms/ChangeCustomEventForm.js2
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/forms/ChangeEventForm.js2
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/forms/ChangeVersionForm.js2
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveAnalysisForm.js2
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveCustomEventForm.js2
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveEventForm.js2
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveVersionForm.js2
-rw-r--r--server/sonar-web/src/main/js/apps/projects/filters/LanguagesFilter.js3
-rw-r--r--server/sonar-web/src/main/js/apps/projects/filters/SearchableFilterFooter.js2
-rw-r--r--server/sonar-web/src/main/js/apps/projects/filters/TagsFilter.js3
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.js2
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/SourceViewerBase.js4
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/SourceViewerCode.js2
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/components/Line.js2
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/components/LineDuplications.js4
-rw-r--r--server/sonar-web/src/main/js/components/issue/IssueView.js2
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/IssueActionsBar.js2
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/IssueAssign.js2
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/IssueChangelog.js2
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/IssueSeverity.js2
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/IssueTags.js2
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/IssueTitleBar.js2
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/IssueTransition.js2
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/IssueType.js2
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/SimilarIssuesFilter.js2
34 files changed, 37 insertions, 39 deletions
diff --git a/server/sonar-web/src/main/js/app/components/ProjectContainer.js b/server/sonar-web/src/main/js/app/components/ProjectContainer.js
index 8df53c24ff3..992aa695e7f 100644
--- a/server/sonar-web/src/main/js/app/components/ProjectContainer.js
+++ b/server/sonar-web/src/main/js/app/components/ProjectContainer.js
@@ -30,7 +30,7 @@ import handleRequiredAuthorization from '../utils/handleRequiredAuthorization';
class ProjectContainer extends React.PureComponent {
props: {
- addGlobalErrorMessage: () => void,
+ addGlobalErrorMessage: (message: string) => void,
children?: React.Element<*>,
location: {
query: { id: string }
diff --git a/server/sonar-web/src/main/js/apps/account/organizations/CreateOrganizationForm.js b/server/sonar-web/src/main/js/apps/account/organizations/CreateOrganizationForm.js
index d5f9835be62..180a5dfb658 100644
--- a/server/sonar-web/src/main/js/apps/account/organizations/CreateOrganizationForm.js
+++ b/server/sonar-web/src/main/js/apps/account/organizations/CreateOrganizationForm.js
@@ -40,7 +40,7 @@ class CreateOrganizationForm extends React.PureComponent {
mounted: boolean;
state: State;
props: {
- createOrganization: () => Promise<*>,
+ createOrganization: (fields: {}) => Promise<*>,
router: { push: string => void }
};
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/DateFilter.js b/server/sonar-web/src/main/js/apps/background-tasks/components/DateFilter.js
index 1d811180649..e9d09a92772 100644
--- a/server/sonar-web/src/main/js/apps/background-tasks/components/DateFilter.js
+++ b/server/sonar-web/src/main/js/apps/background-tasks/components/DateFilter.js
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-/* @flow */
+// @flow
import $ from 'jquery';
import moment from 'moment';
import React, { Component } from 'react';
diff --git a/server/sonar-web/src/main/js/apps/issues/components/App.js b/server/sonar-web/src/main/js/apps/issues/components/App.js
index 000622e2064..144f2f2b682 100644
--- a/server/sonar-web/src/main/js/apps/issues/components/App.js
+++ b/server/sonar-web/src/main/js/apps/issues/components/App.js
@@ -63,10 +63,10 @@ import '../styles.css';
export type Props = {
component?: Component,
currentUser: CurrentUser,
- fetchIssues: () => Promise<*>,
+ fetchIssues: ({}) => Promise<*>,
location: { pathname: string, query: { [string]: string } },
onRequestFail: Error => void,
- router: { push: () => void, replace: () => void }
+ router: { push: ({}) => void, replace: ({}) => void }
};
export type State = {
diff --git a/server/sonar-web/src/main/js/apps/permissions/project/components/App.js b/server/sonar-web/src/main/js/apps/permissions/project/components/App.js
index 1d7a82ff6f5..aba44835c1f 100644
--- a/server/sonar-web/src/main/js/apps/permissions/project/components/App.js
+++ b/server/sonar-web/src/main/js/apps/permissions/project/components/App.js
@@ -43,7 +43,7 @@ export type Props = {|
qualifier: string,
visibility: string
},
- onComponentChange: () => void,
+ onComponentChange: (changes: {}) => void,
onRequestFail: Object => void
|};
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityApp.js b/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityApp.js
index f1972c57bc3..fd9ac67fc94 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityApp.js
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityApp.js
@@ -31,7 +31,7 @@ import './projectActivity.css';
type Props = {
location: { query: { id: string } },
- fetchProjectActivity: (project: string) => void,
+ fetchProjectActivity: (project: string, filter: ?string) => void,
project: { configuration?: { showHistory: boolean } }
};
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddCustomEventForm.js b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddCustomEventForm.js
index 3dcea1662d4..9ff07425850 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddCustomEventForm.js
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddCustomEventForm.js
@@ -25,7 +25,7 @@ import AddEventForm from './AddEventForm';
import type { Analysis } from '../../../../store/projectActivity/duck';
type Props = {
- addEvent: () => Promise<*>,
+ addEvent: (analysis: string, name: string, category?: string) => Promise<*>,
analysis: Analysis
};
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddEventForm.js b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddEventForm.js
index 2d0576c5705..759a60313df 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddEventForm.js
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddEventForm.js
@@ -24,7 +24,7 @@ import type { Analysis } from '../../../../store/projectActivity/duck';
import { translate } from '../../../../helpers/l10n';
type Props = {
- addEvent: () => Promise<*>,
+ addEvent: (analysis: string, name: string, category?: string) => Promise<*>,
analysis: Analysis,
addEventButtonText: string
};
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddVersionForm.js b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddVersionForm.js
index dd1c3e43990..a415a6ec9e6 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddVersionForm.js
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddVersionForm.js
@@ -25,7 +25,7 @@ import AddEventForm from './AddEventForm';
import type { Analysis } from '../../../../store/projectActivity/duck';
type Props = {
- addEvent: () => Promise<*>,
+ addEvent: (analysis: string, version: string) => Promise<*>,
analysis: Analysis
};
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/ChangeCustomEventForm.js b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/ChangeCustomEventForm.js
index 0d17f70cb2d..0cbb7d0d6f5 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/ChangeCustomEventForm.js
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/ChangeCustomEventForm.js
@@ -25,7 +25,7 @@ import { changeEvent } from '../../actions';
import type { Event } from '../../../../store/projectActivity/duck';
type Props = {
- changeEvent: () => Promise<*>,
+ changeEvent: (event: string, name: string) => Promise<*>,
event: Event,
onClose: () => void
};
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/ChangeEventForm.js b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/ChangeEventForm.js
index 3fcdd54cc2a..240ad559c06 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/ChangeEventForm.js
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/ChangeEventForm.js
@@ -24,7 +24,7 @@ import type { Event } from '../../../../store/projectActivity/duck';
import { translate } from '../../../../helpers/l10n';
type Props = {
- changeEvent: () => Promise<*>,
+ changeEvent: (event: string, name: string) => Promise<*>,
changeEventButtonText: string,
event: Event,
onClose: () => void
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/ChangeVersionForm.js b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/ChangeVersionForm.js
index db2f13ae4e8..8eb2192cafc 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/ChangeVersionForm.js
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/ChangeVersionForm.js
@@ -25,7 +25,7 @@ import { changeEvent } from '../../actions';
import type { Event } from '../../../../store/projectActivity/duck';
type Props = {
- changeEvent: () => Promise<*>,
+ changeEvent: (event: string, name: string) => Promise<*>,
event: Event,
onClose: () => void
};
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveAnalysisForm.js b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveAnalysisForm.js
index 620d2980691..ec3676d3ed8 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveAnalysisForm.js
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveAnalysisForm.js
@@ -27,7 +27,7 @@ import { deleteAnalysis } from '../../actions';
type Props = {
analysis: Analysis,
- deleteAnalysis: () => Promise<*>,
+ deleteAnalysis: (project: string, analysis: string) => Promise<*>,
project: string
};
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveCustomEventForm.js b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveCustomEventForm.js
index 26d0ccc9234..6223957e45a 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveCustomEventForm.js
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveCustomEventForm.js
@@ -27,7 +27,7 @@ import type { Event } from '../../../../store/projectActivity/duck';
type Props = {
analysis: string,
event: Event,
- deleteEvent: (string, string) => Promise<*>,
+ deleteEvent: (analysis: string, event: string) => Promise<*>,
onClose: () => void
};
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveEventForm.js b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveEventForm.js
index e251e23f507..e17ed059e85 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveEventForm.js
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveEventForm.js
@@ -25,7 +25,7 @@ import { translate } from '../../../../helpers/l10n';
type Props = {
analysis: string,
- deleteEvent: (string, string) => Promise<*>,
+ deleteEvent: (analysis: string, event: string) => Promise<*>,
event: Event,
removeEventButtonText: string,
removeEventQuestion: string,
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveVersionForm.js b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveVersionForm.js
index 8f896c89d86..3b0459170b8 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveVersionForm.js
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/RemoveVersionForm.js
@@ -27,7 +27,7 @@ import type { Event } from '../../../../store/projectActivity/duck';
type Props = {
analysis: string,
event: Event,
- deleteEvent: (string, string) => Promise<*>,
+ deleteEvent: (analysis: string, event: string) => Promise<*>,
onClose: () => void
};
diff --git a/server/sonar-web/src/main/js/apps/projects/filters/LanguagesFilter.js b/server/sonar-web/src/main/js/apps/projects/filters/LanguagesFilter.js
index c266641d6b7..d610b721939 100644
--- a/server/sonar-web/src/main/js/apps/projects/filters/LanguagesFilter.js
+++ b/server/sonar-web/src/main/js/apps/projects/filters/LanguagesFilter.js
@@ -41,11 +41,10 @@ type Props = {
const LIST_SIZE = 10;
export default class LanguagesFilter extends React.PureComponent {
- getSearchOptions: () => [{ label: string, value: string }];
props: Props;
property = 'languages';
- getSearchOptions(facet: {}, languages: {}) {
+ getSearchOptions(facet?: {}, languages: {}): Array<{ label: string, value: string }> {
let languageKeys = Object.keys(languages);
if (facet) {
languageKeys = difference(languageKeys, Object.keys(facet));
diff --git a/server/sonar-web/src/main/js/apps/projects/filters/SearchableFilterFooter.js b/server/sonar-web/src/main/js/apps/projects/filters/SearchableFilterFooter.js
index 0a13f40b228..e5b739e8429 100644
--- a/server/sonar-web/src/main/js/apps/projects/filters/SearchableFilterFooter.js
+++ b/server/sonar-web/src/main/js/apps/projects/filters/SearchableFilterFooter.js
@@ -26,7 +26,7 @@ import { translate } from '../../../helpers/l10n';
type Props = {
property: string,
query: {},
- options: [{ label: string, value: string }],
+ options: Array<{ label: string, value: string }>,
router: { push: ({ pathname: string, query?: {} }) => void },
onInputChange?: string => void,
onOpen?: void => void,
diff --git a/server/sonar-web/src/main/js/apps/projects/filters/TagsFilter.js b/server/sonar-web/src/main/js/apps/projects/filters/TagsFilter.js
index 28add5b703b..7fb48d31783 100644
--- a/server/sonar-web/src/main/js/apps/projects/filters/TagsFilter.js
+++ b/server/sonar-web/src/main/js/apps/projects/filters/TagsFilter.js
@@ -46,7 +46,6 @@ type State = {
const LIST_SIZE = 10;
export default class TagsFilter extends React.PureComponent {
- getSearchOptions: () => [{ label: string, value: string }];
props: Props;
state: State;
property: string;
@@ -62,7 +61,7 @@ export default class TagsFilter extends React.PureComponent {
this.handleSearch = debounce(this.handleSearch.bind(this), 250);
}
- getSearchOptions(facet: {}, tags: Array<string>) {
+ getSearchOptions(facet?: {}, tags: Array<string>): Array<{ label: string, value: string }> {
let tagsCopy = [...tags];
if (facet) {
tagsCopy = difference(tagsCopy, Object.keys(facet));
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.js b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.js
index ceda3d91f5f..def400e57fb 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.js
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.js
@@ -34,7 +34,7 @@ type Props = {
onRequestFail: Object => void,
organization: ?string,
profiles: Array<Profile>,
- router: { replace: () => void },
+ router: { replace: ({}) => void },
updateProfiles: () => Promise<*>
};
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerBase.js b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerBase.js
index 0ffb62eec71..3dab0e0698a 100644
--- a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerBase.js
+++ b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerBase.js
@@ -397,7 +397,7 @@ export default class SourceViewerBase extends React.PureComponent {
});
};
- loadDuplications = (line: SourceLine, element: HTMLElement) => {
+ loadDuplications = (line: SourceLine) => {
getDuplications(this.props.component).then(r => {
if (this.mounted) {
this.setState(
@@ -410,7 +410,7 @@ export default class SourceViewerBase extends React.PureComponent {
() => {
// immediately show dropdown popup if there is only one duplicated block
if (r.duplications.length === 1) {
- this.handleDuplicationClick(0, line.line, element);
+ this.handleDuplicationClick(0, line.line);
}
}
);
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerCode.js b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerCode.js
index 69af047648c..87605714ffd 100644
--- a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerCode.js
+++ b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerCode.js
@@ -51,7 +51,7 @@ export default class SourceViewerCode extends React.PureComponent {
issues: Array<Issue>,
issuesByLine: { [number]: Array<Issue> },
issueLocationsByLine: { [number]: Array<LinearIssueLocation> },
- loadDuplications: (SourceLine, HTMLElement) => void,
+ loadDuplications: SourceLine => void,
loadSourcesAfter: () => void,
loadSourcesBefore: () => void,
loadingSourcesAfter: boolean,
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/components/Line.js b/server/sonar-web/src/main/js/components/SourceViewer/components/Line.js
index dc4a26c300b..7d44d23183f 100644
--- a/server/sonar-web/src/main/js/components/SourceViewer/components/Line.js
+++ b/server/sonar-web/src/main/js/components/SourceViewer/components/Line.js
@@ -48,7 +48,7 @@ type Props = {|
issues: Array<Issue>,
last: boolean,
line: SourceLine,
- loadDuplications: (SourceLine, HTMLElement) => void,
+ loadDuplications: SourceLine => void,
onClick: (SourceLine, HTMLElement) => void,
onCoverageClick: (SourceLine, HTMLElement) => void,
onDuplicationClick: (number, number) => void,
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/components/LineDuplications.js b/server/sonar-web/src/main/js/components/SourceViewer/components/LineDuplications.js
index 85cc046b1c8..d1f802c6337 100644
--- a/server/sonar-web/src/main/js/components/SourceViewer/components/LineDuplications.js
+++ b/server/sonar-web/src/main/js/components/SourceViewer/components/LineDuplications.js
@@ -26,7 +26,7 @@ import type { SourceLine } from '../types';
type Props = {
line: SourceLine,
- onClick: (SourceLine, HTMLElement) => void
+ onClick: SourceLine => void
};
export default class LineDuplications extends React.PureComponent {
@@ -34,7 +34,7 @@ export default class LineDuplications extends React.PureComponent {
handleClick = (e: SyntheticInputEvent) => {
e.preventDefault();
- this.props.onClick(this.props.line, e.target);
+ this.props.onClick(this.props.line);
};
render() {
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 22770e294ff..a22fdfc432a 100644
--- a/server/sonar-web/src/main/js/components/issue/IssueView.js
+++ b/server/sonar-web/src/main/js/components/issue/IssueView.js
@@ -38,7 +38,7 @@ type Props = {|
onFail: Error => void,
onFilter?: (property: string, issue: Issue) => void,
selected: boolean,
- togglePopup: string => void
+ togglePopup: (string, boolean | void) => void
|};
export default class IssueView extends React.PureComponent {
diff --git a/server/sonar-web/src/main/js/components/issue/components/IssueActionsBar.js b/server/sonar-web/src/main/js/components/issue/components/IssueActionsBar.js
index b8ae17ec46f..87464c953a7 100644
--- a/server/sonar-web/src/main/js/components/issue/components/IssueActionsBar.js
+++ b/server/sonar-web/src/main/js/components/issue/components/IssueActionsBar.js
@@ -35,7 +35,7 @@ type Props = {
onAssign: string => void,
onChange: Issue => void,
onFail: Error => void,
- togglePopup: string => void
+ togglePopup: (string, boolean | void) => void
};
type State = {
diff --git a/server/sonar-web/src/main/js/components/issue/components/IssueAssign.js b/server/sonar-web/src/main/js/components/issue/components/IssueAssign.js
index b8b6aaa77fe..a3e2e5e8203 100644
--- a/server/sonar-web/src/main/js/components/issue/components/IssueAssign.js
+++ b/server/sonar-web/src/main/js/components/issue/components/IssueAssign.js
@@ -31,7 +31,7 @@ type Props = {
canAssign: boolean,
onAssign: string => void,
onFail: Error => void,
- togglePopup: string => void
+ togglePopup: (string, boolean | void) => void
};
export default class IssueAssign extends React.PureComponent {
diff --git a/server/sonar-web/src/main/js/components/issue/components/IssueChangelog.js b/server/sonar-web/src/main/js/components/issue/components/IssueChangelog.js
index c1e77f71801..d3a91a9dc18 100644
--- a/server/sonar-web/src/main/js/components/issue/components/IssueChangelog.js
+++ b/server/sonar-web/src/main/js/components/issue/components/IssueChangelog.js
@@ -28,7 +28,7 @@ type Props = {
isOpen: boolean,
issue: Issue,
creationDate: string,
- togglePopup: string => void,
+ togglePopup: (string, boolean | void) => void,
onFail: Error => void
};
diff --git a/server/sonar-web/src/main/js/components/issue/components/IssueSeverity.js b/server/sonar-web/src/main/js/components/issue/components/IssueSeverity.js
index f4e46db81e3..d91fa74625d 100644
--- a/server/sonar-web/src/main/js/components/issue/components/IssueSeverity.js
+++ b/server/sonar-web/src/main/js/components/issue/components/IssueSeverity.js
@@ -30,7 +30,7 @@ type Props = {
isOpen: boolean,
issue: Issue,
setIssueProperty: (string, string, apiCall: (Object) => Promise<*>, string) => void,
- togglePopup: string => void
+ togglePopup: (string, boolean | void) => void
};
export default class IssueSeverity extends React.PureComponent {
diff --git a/server/sonar-web/src/main/js/components/issue/components/IssueTags.js b/server/sonar-web/src/main/js/components/issue/components/IssueTags.js
index 6cc03db8a44..8974ced8031 100644
--- a/server/sonar-web/src/main/js/components/issue/components/IssueTags.js
+++ b/server/sonar-web/src/main/js/components/issue/components/IssueTags.js
@@ -33,7 +33,7 @@ type Props = {|
issue: Issue,
onChange: Issue => void,
onFail: Error => void,
- togglePopup: string => void
+ togglePopup: (string, boolean | void) => void
|};
export default class IssueTags extends React.PureComponent {
diff --git a/server/sonar-web/src/main/js/components/issue/components/IssueTitleBar.js b/server/sonar-web/src/main/js/components/issue/components/IssueTitleBar.js
index 6e0fe943f07..507328bcb2c 100644
--- a/server/sonar-web/src/main/js/components/issue/components/IssueTitleBar.js
+++ b/server/sonar-web/src/main/js/components/issue/components/IssueTitleBar.js
@@ -35,7 +35,7 @@ type Props = {|
currentPopup: string,
onFail: Error => void,
onFilter?: (property: string, issue: Issue) => void,
- togglePopup: string => void
+ togglePopup: (string, boolean | void) => void
|};
const stopPropagation = (event: Event) => event.stopPropagation();
diff --git a/server/sonar-web/src/main/js/components/issue/components/IssueTransition.js b/server/sonar-web/src/main/js/components/issue/components/IssueTransition.js
index 3e2cf50517f..5b51aab6102 100644
--- a/server/sonar-web/src/main/js/components/issue/components/IssueTransition.js
+++ b/server/sonar-web/src/main/js/components/issue/components/IssueTransition.js
@@ -32,7 +32,7 @@ type Props = {
issue: Issue,
onChange: Issue => void,
onFail: Error => void,
- togglePopup: string => void
+ togglePopup: (string, boolean | void) => void
};
export default class IssueTransition extends React.PureComponent {
diff --git a/server/sonar-web/src/main/js/components/issue/components/IssueType.js b/server/sonar-web/src/main/js/components/issue/components/IssueType.js
index 952d481c1b1..7281352fab4 100644
--- a/server/sonar-web/src/main/js/components/issue/components/IssueType.js
+++ b/server/sonar-web/src/main/js/components/issue/components/IssueType.js
@@ -31,7 +31,7 @@ type Props = {
isOpen: boolean,
issue: Issue,
setIssueProperty: (string, string, apiCall: (Object) => Promise<*>, string) => void,
- togglePopup: string => void
+ togglePopup: (string, boolean | void) => void
};
export default class IssueType extends React.PureComponent {
diff --git a/server/sonar-web/src/main/js/components/issue/components/SimilarIssuesFilter.js b/server/sonar-web/src/main/js/components/issue/components/SimilarIssuesFilter.js
index bf80c555101..d49abfa8939 100644
--- a/server/sonar-web/src/main/js/components/issue/components/SimilarIssuesFilter.js
+++ b/server/sonar-web/src/main/js/components/issue/components/SimilarIssuesFilter.js
@@ -27,7 +27,7 @@ import type { Issue } from '../types';
type Props = {|
isOpen: boolean,
issue: Issue,
- togglePopup: string => void,
+ togglePopup: (string, boolean | void) => void,
onFail: Error => void,
onFilter: (property: string, issue: Issue) => void
|};