show maintenance icon for triggers, closes #299

This commit is contained in:
Alexander Zobnin
2017-12-14 12:44:49 +03:00
parent 3685be7f40
commit 11ad51d5dc
20 changed files with 118 additions and 52 deletions

View File

@@ -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) {