iss #46 - Handle case when All hosts single item selected (use alias for items).
This commit is contained in:
@@ -126,7 +126,7 @@ function (angular, _, kbn) {
|
||||
items = _.flatten(items);
|
||||
|
||||
// Use alias only for single metric, otherwise use item names
|
||||
var alias = items.length > 1 ? undefined : templateSrv.replace(target.alias);
|
||||
var alias = target.item.name === 'All' || itemnames.length > 1 ? undefined : templateSrv.replace(target.alias);
|
||||
|
||||
if ((from < useTrendsFrom) && self.trends) {
|
||||
return self.zabbixAPI.getTrends(items, from, to)
|
||||
|
||||
Reference in New Issue
Block a user