diff options
author | Pascal Mugnier <pascal.mugnier@sonarsource.com> | 2018-04-11 11:45:50 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-04-17 20:20:47 +0200 |
commit | febe5e5d486667bb8c523825285f1c22e4a48bb6 (patch) | |
tree | 96eb40241ce1d1fb923190e51a0238bd43af3304 | |
parent | 5575882cee119d3e1705e203e2105d3046b0a093 (diff) | |
download | sonarqube-febe5e5d486667bb8c523825285f1c22e4a48bb6.tar.gz sonarqube-febe5e5d486667bb8c523825285f1c22e4a48bb6.zip |
GOV-317 Change operator in application quality gate section
2 files changed, 6 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/qualityGate/ApplicationQualityGateProject.tsx b/server/sonar-web/src/main/js/apps/overview/qualityGate/ApplicationQualityGateProject.tsx index 388b77005ee..8c7ef64f553 100644 --- a/server/sonar-web/src/main/js/apps/overview/qualityGate/ApplicationQualityGateProject.tsx +++ b/server/sonar-web/src/main/js/apps/overview/qualityGate/ApplicationQualityGateProject.tsx @@ -50,7 +50,9 @@ export default class ApplicationQualityGateProject extends React.PureComponent<P 'text-danger': condition.status === 'ERROR', 'text-warning': condition.status === 'WARN' })}> - {translate('quality_gates.operator', condition.comparator, 'short')}{' '} + {metric.type === 'RATING' + ? translate('quality_gates.operator', condition.comparator, 'rating') + : translate('quality_gates.operator', condition.comparator)}{' '} {formatMeasure(threshold, metric.type)} </span> </li> diff --git a/server/sonar-web/src/main/js/apps/overview/qualityGate/__tests__/__snapshots__/ApplicationQualityGateProject-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/qualityGate/__tests__/__snapshots__/ApplicationQualityGateProject-test.tsx.snap index 4c5e4ee1a87..b4c85030625 100644 --- a/server/sonar-web/src/main/js/apps/overview/qualityGate/__tests__/__snapshots__/ApplicationQualityGateProject-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/overview/qualityGate/__tests__/__snapshots__/ApplicationQualityGateProject-test.tsx.snap @@ -39,7 +39,7 @@ exports[`renders 1`] = ` <span className="big-spacer-left text-danger" > - quality_gates.operator.LT.short + quality_gates.operator.LT 85.0% </span> @@ -60,7 +60,7 @@ exports[`renders 1`] = ` <span className="big-spacer-left text-warning" > - quality_gates.operator.GT.short + quality_gates.operator.GT 0 </span> @@ -82,7 +82,7 @@ exports[`renders 1`] = ` <span className="big-spacer-left text-danger" > - quality_gates.operator.GT.short + quality_gates.operator.GT 0 </span> |