aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/ui
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-07-26 10:54:32 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2017-07-31 11:27:51 +0200
commitad80311e12f8df9ec4416dfdd261a64dc6f8f084 (patch)
tree53a11a0deebec4bdc0c87f2d26393c26c8fa04ac /server/sonar-web/src/main/js/components/ui
parenta940c4b1277ab6947f0a53b7e6dbcb1d7420d861 (diff)
downloadsonarqube-ad80311e12f8df9ec4416dfdd261a64dc6f8f084.tar.gz
sonarqube-ad80311e12f8df9ec4416dfdd261a64dc6f8f084.zip
support NONE value in Level component
Diffstat (limited to 'server/sonar-web/src/main/js/components/ui')
-rw-r--r--server/sonar-web/src/main/js/components/ui/Level.css4
-rw-r--r--server/sonar-web/src/main/js/components/ui/Level.js2
2 files changed, 5 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/components/ui/Level.css b/server/sonar-web/src/main/js/components/ui/Level.css
index e48587f6e8a..6f47b9f2967 100644
--- a/server/sonar-web/src/main/js/components/ui/Level.css
+++ b/server/sonar-web/src/main/js/components/ui/Level.css
@@ -47,3 +47,7 @@ a > .level:hover {
.level-ERROR {
background-color: #d4333f;
}
+
+.level-NONE {
+ background-color: #b4b4b4;
+}
diff --git a/server/sonar-web/src/main/js/components/ui/Level.js b/server/sonar-web/src/main/js/components/ui/Level.js
index 2c75e84e32c..2ba079f1995 100644
--- a/server/sonar-web/src/main/js/components/ui/Level.js
+++ b/server/sonar-web/src/main/js/components/ui/Level.js
@@ -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
};