Metric aggs are never sub-aggs

This commit is contained in:
Jimmy Jones 2015-02-05 21:31:26 +00:00
parent 09dff7ad94
commit 447e18b2e5

View file

@ -1,6 +1,6 @@
<div class="form-group">
<label ng-if="$index < 1">Aggregation</label>
<label ng-if="$index >= 1">Sub Aggregation</label>
<label ng-if="$index < 1 || groupName !== 'buckets'">Aggregation</label>
<label ng-if="$index >= 1 && groupName === 'buckets'">Sub Aggregation</label>
<select
name="agg"
class="form-control"
@ -8,4 +8,4 @@
required
ng-options="agg as agg.title for agg in aggTypeOptions | aggFilter:agg.schema.aggFilter">
</select>
</div>
</div>