]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8815 Specify the operator on projects page facets (#1763)
authorGrégoire Aubert <gregaubert@users.noreply.github.com>
Thu, 9 Mar 2017 15:14:10 +0000 (16:14 +0100)
committerGitHub <noreply@github.com>
Thu, 9 Mar 2017 15:14:10 +0000 (16:14 +0100)
server/sonar-web/src/main/js/helpers/ratings.js

index 705c61d0b1e10c19e665de5f2ef4f8c109319593..9cdd220c127f76b631cc48812a9a318d45b21972 100644 (file)
@@ -26,7 +26,7 @@ const checkNumberRating = coverageRating => {
 export const getCoverageRatingLabel = rating => {
   checkNumberRating(rating);
 
-  const mapping = ['> 80%', '< 80%', '< 70%', '< 50%', '< 30%'];
+  const mapping = [' 80%', '< 80%', '< 70%', '< 50%', '< 30%'];
   return mapping[rating - 1];
 };
 
@@ -39,7 +39,7 @@ export const getCoverageRatingAverageValue = rating => {
 export const getDuplicationsRatingLabel = rating => {
   checkNumberRating(rating);
 
-  const mapping = ['< 3%', '> 3%', '> 5%', '> 10%', '> 20%'];
+  const mapping = ['< 3%', ' 3%', '> 5%', '> 10%', '> 20%'];
   return mapping[rating - 1];
 };
 
@@ -52,7 +52,7 @@ export const getDuplicationsRatingAverageValue = rating => {
 export const getSizeRatingLabel = rating => {
   checkNumberRating(rating);
 
-  const mapping = ['< 1k', '> 1k', '> 10k', '> 100k', '> 500k'];
+  const mapping = ['< 1k', ' 1k', '> 10k', '> 100k', '> 500k'];
   return mapping[rating - 1];
 };