diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2019-04-10 15:48:31 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2019-05-06 11:01:14 +0200 |
commit | 0de67f888cd2cc48e7097caaf1860e4985f751c5 (patch) | |
tree | 96ae9111a35ef487e43a1c3f752e7cfb765ee2d3 /server/sonar-web/src/main/js/components/SourceViewer | |
parent | 570316af531be1479cb7fa504c9ba9777babbd03 (diff) | |
download | sonarqube-0de67f888cd2cc48e7097caaf1860e4985f751c5.tar.gz sonarqube-0de67f888cd2cc48e7097caaf1860e4985f751c5.zip |
SONAR-11900 Remove location counter from issues in the code viewer and issue list
Diffstat (limited to 'server/sonar-web/src/main/js/components/SourceViewer')
6 files changed, 0 insertions, 26 deletions
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerBase.tsx b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerBase.tsx index 3628a9efefd..50164b72dc4 100644 --- a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerBase.tsx +++ b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerBase.tsx @@ -51,8 +51,6 @@ export interface Props { branchLike: T.BranchLike | undefined; component: string; displayAllIssues?: boolean; - displayIssueLocationsCount?: boolean; - displayIssueLocationsLink?: boolean; displayLocationMarkers?: boolean; highlightedLine?: number; // `undefined` elements mean they are located in a different file, @@ -118,8 +116,6 @@ export default class SourceViewerBase extends React.PureComponent<Props, State> static defaultProps = { displayAllIssues: false, - displayIssueLocationsCount: true, - displayIssueLocationsLink: true, displayLocationMarkers: true, loadComponent: defaultLoadComponent, loadIssues: defaultLoadIssues, @@ -633,8 +629,6 @@ export default class SourceViewerBase extends React.PureComponent<Props, State> branchLike={this.props.branchLike} componentKey={this.props.component} displayAllIssues={this.props.displayAllIssues} - displayIssueLocationsCount={this.props.displayIssueLocationsCount} - displayIssueLocationsLink={this.props.displayIssueLocationsLink} displayLocationMarkers={this.props.displayLocationMarkers} duplications={this.state.duplications} duplicationsByLine={this.state.duplicationsByLine} diff --git a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerCode.tsx b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerCode.tsx index 923f3b6ff9f..cac8ee2dec8 100644 --- a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerCode.tsx +++ b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerCode.tsx @@ -37,8 +37,6 @@ interface Props { branchLike: T.BranchLike | undefined; componentKey: string; displayAllIssues?: boolean; - displayIssueLocationsCount?: boolean; - displayIssueLocationsLink?: boolean; displayLocationMarkers?: boolean; duplications: T.Duplication[] | undefined; duplicationsByLine: { [line: number]: number[] }; @@ -159,8 +157,6 @@ export default class SourceViewerCode extends React.PureComponent<Props> { displayAllIssues={this.props.displayAllIssues} displayCoverage={displayCoverage} displayDuplications={displayDuplications} - displayIssueLocationsCount={this.props.displayIssueLocationsCount} - displayIssueLocationsLink={this.props.displayIssueLocationsLink} displayIssues={displayIssues} displayLocationMarkers={this.props.displayLocationMarkers} duplications={this.getDuplicationsForLine(line)} diff --git a/server/sonar-web/src/main/js/components/SourceViewer/components/Line.tsx b/server/sonar-web/src/main/js/components/SourceViewer/components/Line.tsx index 27574086a84..5d26fe77b9b 100644 --- a/server/sonar-web/src/main/js/components/SourceViewer/components/Line.tsx +++ b/server/sonar-web/src/main/js/components/SourceViewer/components/Line.tsx @@ -33,8 +33,6 @@ interface Props { displayAllIssues?: boolean; displayCoverage: boolean; displayDuplications: boolean; - displayIssueLocationsCount?: boolean; - displayIssueLocationsLink?: boolean; displayIssues: boolean; displayLocationMarkers?: boolean; duplications: number[]; @@ -151,8 +149,6 @@ export default class Line extends React.PureComponent<Props> { <LineCode branchLike={this.props.branchLike} - displayIssueLocationsCount={this.props.displayIssueLocationsCount} - displayIssueLocationsLink={this.props.displayIssueLocationsLink} displayLocationMarkers={this.props.displayLocationMarkers} highlightedLocationMessage={this.props.highlightedLocationMessage} highlightedSymbols={this.props.highlightedSymbols} diff --git a/server/sonar-web/src/main/js/components/SourceViewer/components/LineCode.tsx b/server/sonar-web/src/main/js/components/SourceViewer/components/LineCode.tsx index af7a7b7200a..7b9bd25fba9 100644 --- a/server/sonar-web/src/main/js/components/SourceViewer/components/LineCode.tsx +++ b/server/sonar-web/src/main/js/components/SourceViewer/components/LineCode.tsx @@ -31,8 +31,6 @@ import { interface Props { branchLike: T.BranchLike | undefined; - displayIssueLocationsCount?: boolean; - displayIssueLocationsLink?: boolean; displayLocationMarkers?: boolean; highlightedLocationMessage: { index: number; text: string | undefined } | undefined; highlightedSymbols: string[] | undefined; @@ -228,8 +226,6 @@ export default class LineCode extends React.PureComponent<Props, State> { {showIssues && issues.length > 0 && ( <LineIssuesList branchLike={this.props.branchLike} - displayIssueLocationsCount={this.props.displayIssueLocationsCount} - displayIssueLocationsLink={this.props.displayIssueLocationsLink} issuePopup={this.props.issuePopup} issues={issues} onIssueChange={this.props.onIssueChange} diff --git a/server/sonar-web/src/main/js/components/SourceViewer/components/LineIssuesList.tsx b/server/sonar-web/src/main/js/components/SourceViewer/components/LineIssuesList.tsx index f64da90def8..bd9df8ed497 100644 --- a/server/sonar-web/src/main/js/components/SourceViewer/components/LineIssuesList.tsx +++ b/server/sonar-web/src/main/js/components/SourceViewer/components/LineIssuesList.tsx @@ -22,8 +22,6 @@ import Issue from '../../issue/Issue'; interface Props { branchLike: T.BranchLike | undefined; - displayIssueLocationsCount?: boolean; - displayIssueLocationsLink?: boolean; issuePopup: { issue: string; name: string } | undefined; issues: T.Issue[]; onIssueChange: (issue: T.Issue) => void; @@ -40,8 +38,6 @@ export default function LineIssuesList(props: Props) { {props.issues.map(issue => ( <Issue branchLike={props.branchLike} - displayLocationsCount={props.displayIssueLocationsCount} - displayLocationsLink={props.displayIssueLocationsLink} issue={issue} key={issue.key} onChange={props.onIssueChange} diff --git a/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineIssuesList-test.tsx.snap b/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineIssuesList-test.tsx.snap index 23005294869..457c4cad762 100644 --- a/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineIssuesList-test.tsx.snap +++ b/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineIssuesList-test.tsx.snap @@ -5,8 +5,6 @@ exports[`render issues list 1`] = ` className="issue-list" > <Issue - displayLocationsCount={true} - displayLocationsLink={true} issue={ Object { "actions": Array [], @@ -40,8 +38,6 @@ exports[`render issues list 1`] = ` selected={true} /> <Issue - displayLocationsCount={true} - displayLocationsLink={true} issue={ Object { "actions": Array [], |