don't show time for triggers with lastchange=0, fix #412
This commit is contained in:
6
dist/panel-triggers/triggers_panel_ctrl.js
vendored
6
dist/panel-triggers/triggers_panel_ctrl.js
vendored
@@ -476,6 +476,12 @@ System.register(['lodash', 'jquery', 'moment', '../datasource-zabbix/utils', 'ap
|
||||
}, {
|
||||
key: 'setTriggerLastChange',
|
||||
value: function setTriggerLastChange(trigger) {
|
||||
if (!trigger.lastchangeUnix) {
|
||||
trigger.lastchange = "";
|
||||
trigger.age = "";
|
||||
return trigger;
|
||||
}
|
||||
|
||||
var timestamp = moment.unix(trigger.lastchangeUnix);
|
||||
if (this.panel.customLastChangeFormat) {
|
||||
// User defined format
|
||||
|
||||
Reference in New Issue
Block a user