aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-04-07 13:06:33 +0200
committerStas Vilchik <vilchiks@gmail.com>2016-04-07 13:33:29 +0200
commit758c8041ac7b0f9f2f36c018d3d86d13889fa2fd (patch)
tree28f6ed9a82182581fe0bb268561c0ac101df1d9a /server
parent064e4eba0dce450379cf9754b53d51fea68e88c1 (diff)
downloadsonarqube-758c8041ac7b0f9f2f36c018d3d86d13889fa2fd.tar.gz
sonarqube-758c8041ac7b0f9f2f36c018d3d86d13889fa2fd.zip
change the link on technical debt from measures page to issues page
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/js/apps/overview/main/code-smells.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/main/code-smells.js b/server/sonar-web/src/main/js/apps/overview/main/code-smells.js
index d56cb86adb0..56913062013 100644
--- a/server/sonar-web/src/main/js/apps/overview/main/code-smells.js
+++ b/server/sonar-web/src/main/js/apps/overview/main/code-smells.js
@@ -59,13 +59,15 @@ export const CodeSmells = React.createClass({
return <DomainLeak>
<MeasuresList>
<Measure label={getMetricName('new_effort')}>
- <DrilldownLink component={this.props.component.key} metric="new_technical_debt">
+ <IssuesLink
+ component={this.props.component.key}
+ params={{ resolved: 'false', types: 'CODE_SMELL', facetMode: 'debt', sinceLeakPeriod: 'true' }}>
<span
title={translateWithParameters('widget.as_calculated_on_x', formattedSnapshotDate)}
data-toggle="tooltip">
{formatMeasure(newDebt, 'SHORT_WORK_DUR')}
</span>
- </DrilldownLink>
+ </IssuesLink>
</Measure>
<Measure label={getMetricName('new_code_smells')}>
<IssuesLink
@@ -120,13 +122,15 @@ export const CodeSmells = React.createClass({
</Measure>
<Measure label={getMetricName('effort')}>
- <DrilldownLink component={this.props.component.key} metric="sqale_index">
+ <IssuesLink
+ component={this.props.component.key}
+ params={{ resolved: 'false', types: 'CODE_SMELL', facetMode: 'debt' }}>
<span
title={translateWithParameters('widget.as_calculated_on_x', formattedSnapshotDate)}
data-toggle="tooltip">
{formatMeasure(debt, 'SHORT_WORK_DUR')}
</span>
- </DrilldownLink>
+ </IssuesLink>
</Measure>
</MeasuresList>
{this.renderTimeline('before', true)}