aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src
diff options
context:
space:
mode:
authorRevanshu Paliwal <revanshu.paliwal@sonarsource.com>2024-03-19 09:58:15 +0100
committersonartech <sonartech@sonarsource.com>2024-03-19 20:02:38 +0000
commit5861f25d04e14042f09e78e45f3bf412a133f3a8 (patch)
treeb808834e9cb585466ac8150d580a79bc530baf33 /server/sonar-web/src
parent107fe412a6a99f77fc34e7bedb5e6eca97d6f464 (diff)
downloadsonarqube-5861f25d04e14042f09e78e45f3bf412a133f3a8.tar.gz
sonarqube-5861f25d04e14042f09e78e45f3bf412a133f3a8.zip
SONAR-21744 Fixing line label for overall duplication and coverage
Diffstat (limited to 'server/sonar-web/src')
-rw-r--r--server/sonar-web/src/main/js/apps/overview/components/MeasuresCardPercent.tsx5
1 files changed, 1 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/components/MeasuresCardPercent.tsx b/server/sonar-web/src/main/js/apps/overview/components/MeasuresCardPercent.tsx
index fa181275dfe..8bdb401d6f4 100644
--- a/server/sonar-web/src/main/js/apps/overview/components/MeasuresCardPercent.tsx
+++ b/server/sonar-web/src/main/js/apps/overview/components/MeasuresCardPercent.tsx
@@ -84,10 +84,7 @@ export default function MeasuresCardPercent(
const linesValue = useDiffMetric
? getLeakValue(findMeasure(measures, linesMetric))
: findMeasure(measures, linesMetric)?.value;
- const linesLabel =
- measurementType === MeasurementType.Coverage
- ? 'overview.quality_gate.on_x_new_lines_to_cover'
- : 'overview.quality_gate.on_x_new_lines';
+ const linesLabel = `overview.${metricKey}.on_x_new_lines`;
const linesUrl = getComponentDrilldownUrl({
componentKey,
metric: linesMetric,