]> source.dussan.org Git - sonarqube.git/commitdiff
support NONE value in Level component
authorStas Vilchik <stas.vilchik@sonarsource.com>
Wed, 26 Jul 2017 08:54:32 +0000 (10:54 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Mon, 31 Jul 2017 09:27:51 +0000 (11:27 +0200)
server/sonar-web/src/main/js/components/ui/Level.css
server/sonar-web/src/main/js/components/ui/Level.js
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index e48587f6e8ac59f53d94a44a797df08a546bcfe5..6f47b9f2967406e4c5837c0610ca4b3fdff544c4 100644 (file)
@@ -47,3 +47,7 @@ a > .level:hover {
 .level-ERROR {
   background-color: #d4333f;
 }
+
+.level-NONE {
+  background-color: #b4b4b4;
+}
index 2c75e84e32c88824cca74e04402896557a867608..2ba079f19956be57990ca24a1838e62334695151 100644 (file)
@@ -26,7 +26,7 @@ import './Level.css';
 export default class Level extends React.PureComponent {
   static propTypes = {
     className: PropTypes.string,
-    level: PropTypes.oneOf(['ERROR', 'WARN', 'OK']).isRequired,
+    level: PropTypes.oneOf(['ERROR', 'WARN', 'OK', 'NONE']).isRequired,
     small: PropTypes.bool,
     muted: PropTypes.bool
   };
index 23adb0d3615c9f56db69c8e7a8b1b27f3b90c6ca..d80ae93f259acecc0e519feaf6ec62454f9b4876 100644 (file)
@@ -2052,6 +2052,7 @@ metric.type.WORK_DUR=Work Duration
 metric.level.ERROR=Failed
 metric.level.WARN=Warning
 metric.level.OK=Passed
+metric.level.NONE=None
 
 #------------------------------------------------------------------------------
 #