Show host names in metric name when multiple hosts selected.

This commit is contained in:
Alexander Zobnin
2016-01-18 21:47:21 +03:00
parent 051438e48a
commit 0a310a9db3
2 changed files with 7 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ function (angular, _) {
return $q.when(_.map(grouped_history, function (history, itemid) {
var item = indexed_items[itemid];
return {
target: (item.hosts ? item.hosts[0].name+': ' : '')
target: (item.host ? item.host + ': ' : '')
+ (alias ? alias : self.expandItemName(item)),
datapoints: _.map(history, function (p) {