aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/overview
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-11-13 16:01:32 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-11-13 16:01:32 +0100
commite1e8f1e36fefbd8d44c9247d57568ce49c20971a (patch)
tree93e323f7f767cf25557b43e983fbc85ac4954b53 /server/sonar-web/src/main/js/apps/overview
parentf2265bb40755e31f983199204b6b24f88360f3ed (diff)
downloadsonarqube-e1e8f1e36fefbd8d44c9247d57568ce49c20971a.tar.gz
sonarqube-e1e8f1e36fefbd8d44c9247d57568ce49c20971a.zip
SONAR-6331 fix period index in coverage section
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview')
-rw-r--r--server/sonar-web/src/main/js/apps/overview/main/coverage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/main/coverage.js b/server/sonar-web/src/main/js/apps/overview/main/coverage.js
index eb0422c4bcb..0c00feb7a4b 100644
--- a/server/sonar-web/src/main/js/apps/overview/main/coverage.js
+++ b/server/sonar-web/src/main/js/apps/overview/main/coverage.js
@@ -39,9 +39,9 @@ export const GeneralCoverage = React.createClass({
renderNewCoverage () {
let newCoverageMetric = this.getNewCoverageMetric();
- // FIXME fix period index
if (this.props.leak[newCoverageMetric] != null) {
- return <DrilldownLink component={this.props.component.key} metric={newCoverageMetric} period="1">
+ return <DrilldownLink component={this.props.component.key} metric={newCoverageMetric}
+ period={this.props.leakPeriodIndex}>
<span className="js-overview-main-new-coverage">
{formatMeasure(this.props.leak[newCoverageMetric], 'PERCENT')}
</span>