Add templated graphs.

This commit is contained in:
Alexander Zobnin
2015-05-25 01:26:09 +03:00
parent aa424af15b
commit 0213512e3b
2 changed files with 49 additions and 10 deletions

View File

@@ -217,6 +217,12 @@ function (angular, _) {
item.name = expandItemName(item);
}
});
if ($scope.target.item) {
$scope.target.item = $scope.metric.itemList.filter(function (item, index, array) {
// Find selected item in metric.hostList
return (item.name == $scope.target.item.name);
}).pop();
}
});
} else {
if ($scope.target.item) {