+
Add {{ groupName }}
-
+
Add sub-{{ groupName }}
diff --git a/src/plugins/kibana/public/visualize/editor/agg_group.js b/src/plugins/kibana/public/visualize/editor/agg_group.js
index d0223fa90ef0..1718d80c1b58 100644
--- a/src/plugins/kibana/public/visualize/editor/agg_group.js
+++ b/src/plugins/kibana/public/visualize/editor/agg_group.js
@@ -25,10 +25,7 @@ uiModules
const stats = $scope.stats = {
min: 0,
max: 0,
- count: $scope.group ? $scope.group.length : 0,
- numDeprecated: $scope.schemas.raw.filter(function (o) {
- return o.deprecate;
- }).length
+ count: $scope.group ? $scope.group.length : 0
};
if (!$scope.schemas) return;
@@ -36,6 +33,7 @@ uiModules
$scope.schemas.forEach(function (schema) {
stats.min += schema.min;
stats.max += schema.max;
+ stats.deprecate = schema.deprecate;
});
$scope.availableSchema = $scope.schemas.filter(function (schema) {
diff --git a/src/plugins/kibana/public/visualize/editor/agg_params.html b/src/plugins/kibana/public/visualize/editor/agg_params.html
index e4473e73a8b2..6a3c8c7cf387 100644
--- a/src/plugins/kibana/public/visualize/editor/agg_params.html
+++ b/src/plugins/kibana/public/visualize/editor/agg_params.html
@@ -10,4 +10,10 @@
style="display: none;">