Browse Source

support NONE value in Level component

tags/6.6-RC1
Stas Vilchik 6 years ago
parent
commit
ad80311e12

+ 4
- 0
server/sonar-web/src/main/js/components/ui/Level.css View File

.level-ERROR { .level-ERROR {
background-color: #d4333f; background-color: #d4333f;
} }

.level-NONE {
background-color: #b4b4b4;
}

+ 1
- 1
server/sonar-web/src/main/js/components/ui/Level.js View File

export default class Level extends React.PureComponent { export default class Level extends React.PureComponent {
static propTypes = { static propTypes = {
className: PropTypes.string, className: PropTypes.string,
level: PropTypes.oneOf(['ERROR', 'WARN', 'OK']).isRequired,
level: PropTypes.oneOf(['ERROR', 'WARN', 'OK', 'NONE']).isRequired,
small: PropTypes.bool, small: PropTypes.bool,
muted: PropTypes.bool muted: PropTypes.bool
}; };

+ 1
- 0
sonar-core/src/main/resources/org/sonar/l10n/core.properties View File

metric.level.ERROR=Failed metric.level.ERROR=Failed
metric.level.WARN=Warning metric.level.WARN=Warning
metric.level.OK=Passed metric.level.OK=Passed
metric.level.NONE=None


#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# #

Loading…
Cancel
Save