Problems: fix heart icons, fix #754

This commit is contained in:
Alexander Zobnin
2019-08-08 12:34:21 +03:00
parent e02b660dfd
commit 55ffe5eded
3 changed files with 7 additions and 16 deletions

View File

@@ -13,12 +13,8 @@ export default function AlertIcon(props: AlertIconProps) {
const { problem, color, blink, highlightBackground } = props;
const priority = Number(problem.priority);
let iconClass = '';
if (problem.value === '1') {
if (priority >= 3) {
iconClass = 'icon-gf-critical';
} else {
iconClass = 'icon-gf-warning';
}
if (problem.value === '1' && priority >= 2) {
iconClass = 'icon-gf-critical';
} else {
iconClass = 'icon-gf-online';
}