aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerBase.js
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-02-21 13:32:25 +0100
committerGitHub <noreply@github.com>2018-02-21 13:32:25 +0100
commitd6d2b5824be0c018ad4fc606f01abfb9f266c804 (patch)
treef6e8fde0634860a56c9f6d43107187cf21a0b2f3 /server/sonar-web/src/main/js/components/SourceViewer/SourceViewerBase.js
parentcaf48455f693b76d06ebd2328d8498442cb0c1ab (diff)
downloadsonarqube-d6d2b5824be0c018ad4fc606f01abfb9f266c804.tar.gz
sonarqube-d6d2b5824be0c018ad4fc606f01abfb9f266c804.zip
review source viewer measures overlay in react (#3084)
Diffstat (limited to 'server/sonar-web/src/main/js/components/SourceViewer/SourceViewerBase.js')
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/SourceViewerBase.js16
1 files changed, 1 insertions, 15 deletions
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 2022165e43f..6f267452fa0 100644
--- a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerBase.js
+++ b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerBase.js
@@ -27,7 +27,6 @@ import CoveragePopupView from './popups/coverage-popup';
import DuplicationPopupView from './popups/duplication-popup';
import LineActionsPopupView from './popups/line-actions-popup';
import SCMPopupView from './popups/scm-popup';
-import MeasuresOverlay from './views/measures-overlay';
import loadIssues from './helpers/loadIssues';
import getCoverageStatus from './helpers/getCoverageStatus';
import {
@@ -464,15 +463,6 @@ export default class SourceViewerBase extends React.PureComponent {
});
};
- showMeasures = () => {
- const measuresOverlay = new MeasuresOverlay({
- branch: this.props.branch,
- component: this.state.component,
- large: true
- });
- measuresOverlay.render();
- };
-
handleCoverageClick = (line /*: SourceLine */, element /*: HTMLElement */) => {
getTests(this.props.component, line.line, this.props.branch).then(tests => {
const popup = new CoveragePopupView({
@@ -691,11 +681,7 @@ export default class SourceViewerBase extends React.PureComponent {
return (
<div className={className} ref={node => (this.node = node)}>
- <SourceViewerHeader
- branch={this.props.branch}
- component={this.state.component}
- showMeasures={this.showMeasures}
- />
+ <SourceViewerHeader branch={this.props.branch} sourceViewerFile={this.state.component} />
{sourceRemoved && (
<div className="alert alert-warning spacer-top">
{translate('code_viewer.no_source_code_displayed_due_to_source_removed')}