show maintenance icon for triggers, closes #299
This commit is contained in:
8
dist/datasource-zabbix/zabbixAPI.service.js
vendored
8
dist/datasource-zabbix/zabbixAPI.service.js
vendored
@@ -315,7 +315,7 @@ System.register(['angular', 'lodash', './utils', './zabbixAPICore.service'], fun
|
||||
key: 'getTriggers',
|
||||
value: function getTriggers(groupids, hostids, applicationids, options) {
|
||||
var showTriggers = options.showTriggers,
|
||||
hideHostsInMaintenance = options.hideHostsInMaintenance,
|
||||
maintenance = options.maintenance,
|
||||
timeFrom = options.timeFrom,
|
||||
timeTo = options.timeTo;
|
||||
|
||||
@@ -335,7 +335,7 @@ System.register(['angular', 'lodash', './utils', './zabbixAPICore.service'], fun
|
||||
value: 1
|
||||
},
|
||||
selectGroups: ['name'],
|
||||
selectHosts: ['name', 'host'],
|
||||
selectHosts: ['name', 'host', 'maintenance_status'],
|
||||
selectItems: ['name', 'key_', 'lastvalue'],
|
||||
selectLastEvent: 'extend'
|
||||
};
|
||||
@@ -344,8 +344,8 @@ System.register(['angular', 'lodash', './utils', './zabbixAPICore.service'], fun
|
||||
params.filter.value = showTriggers;
|
||||
}
|
||||
|
||||
if (hideHostsInMaintenance) {
|
||||
params.maintenance = false;
|
||||
if (maintenance) {
|
||||
params.maintenance = true;
|
||||
}
|
||||
|
||||
if (timeFrom || timeTo) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user