Cache service refactoring.

This commit is contained in:
Alexander Zobnin
2016-01-17 13:45:55 +03:00
parent bd60d2e264
commit 7a73449828
3 changed files with 77 additions and 27 deletions

View File

@@ -80,13 +80,7 @@ define([
$scope.getGroupNames = _.partial(getMetricNames, $scope, 'groupList');
$scope.getHostNames = _.partial(getMetricNames, $scope, 'hostList');
$scope.getApplicationNames = _.partial(getMetricNames, $scope, 'applicationList');
$scope.getItemNames = function () {
var expandedItems = _.map($scope.metric.itemList, function (item) {
return zabbixHelperSrv.expandItemName(item);
});
return _.uniq(expandedItems);
};
$scope.getItemNames = _.partial(getMetricNames, $scope, 'itemList');
/**
* Switch query editor to specified mode.