triggers panel: fix icon for OK events

This commit is contained in:
Alexander Zobnin
2018-03-23 15:44:32 +03:00
parent 88a44f84ab
commit e09bbe125b
5 changed files with 22 additions and 7 deletions

View File

@@ -641,9 +641,8 @@ System.register(['lodash', 'jquery', 'moment', '../datasource-zabbix/utils', 'ap
}, {
key: 'getAlertIconClass',
value: function getAlertIconClass(trigger) {
var triggerValue = Number(trigger.value);
var iconClass = '';
if (triggerValue || trigger.color) {
if (trigger.value === '1') {
if (trigger.priority >= 3) {
iconClass = 'icon-gf-critical';
} else {
@@ -658,6 +657,15 @@ System.register(['lodash', 'jquery', 'moment', '../datasource-zabbix/utils', 'ap
}
return iconClass;
}
}, {
key: 'getAlertIconClassBySeverity',
value: function getAlertIconClassBySeverity(triggerSeverity) {
var iconClass = 'icon-gf-warning';
if (triggerSeverity.priority >= 3) {
iconClass = 'icon-gf-critical';
}
return iconClass;
}
}, {
key: 'getAlertStateClass',
value: function getAlertStateClass(trigger) {