]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6331 fix period index in coverage section
authorStas Vilchik <vilchiks@gmail.com>
Fri, 13 Nov 2015 15:01:32 +0000 (16:01 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 13 Nov 2015 15:01:32 +0000 (16:01 +0100)
server/sonar-web/src/main/js/apps/overview/main/coverage.js

index eb0422c4bcb362d786a1d5ee7313af077abb7dd5..0c00feb7a4bcd20b1152df1568f38094c758ddfe 100644 (file)
@@ -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>