diff options
author | Revanshu Paliwal <revanshu.paliwal@sonarsource.com> | 2024-03-19 09:58:15 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-03-19 20:02:38 +0000 |
commit | 5861f25d04e14042f09e78e45f3bf412a133f3a8 (patch) | |
tree | b808834e9cb585466ac8150d580a79bc530baf33 /server/sonar-web/src | |
parent | 107fe412a6a99f77fc34e7bedb5e6eca97d6f464 (diff) | |
download | sonarqube-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.tsx | 5 |
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, |