]> source.dussan.org Git - sonarqube.git/commitdiff
fix link to added issues from the debt overview
authorStas Vilchik <vilchiks@gmail.com>
Thu, 10 Dec 2015 10:07:41 +0000 (11:07 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 10 Dec 2015 10:07:41 +0000 (11:07 +0100)
server/sonar-web/src/main/js/apps/overview/components/issue-measure.js

index 8387f2b6feb1245b3568e8d4795f74ffcfe7d5ae..a0f703d8026a9e0773b326efd65419a8de5bb0e6 100644 (file)
@@ -67,12 +67,14 @@ export const AddedRemovedMeasure = React.createClass({
     let added = this.props.leak[this.props.leakMetric] || 0;
     let removed = added - leak;
 
+    let createdAfter = moment(this.props.leakPeriodDate).format('YYYY-MM-DDTHH:mm:ssZZ');
+
     return <div className="overview-detailed-measure-leak">
       <ul>
         <li style={{ display: 'flex', alignItems: 'baseline' }}>
           <small className="flex-1 text-left">{window.t('overview.added')}</small>
           <IssuesLink className="text-danger"
-                      component={this.props.component.key} params={{ resolved: 'false' }}>
+                      component={this.props.component.key} params={{ resolved: 'false', createdAfter }}>
             <span className="overview-detailed-measure-value">
               {formatMeasure(added, getShortType(this.props.type))}
             </span>