triggers panel: fix icon for OK events
This commit is contained in:
12
dist/panel-triggers/triggers_panel_ctrl.js
vendored
12
dist/panel-triggers/triggers_panel_ctrl.js
vendored
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user