Skip to content

Commit

Permalink
use aggParam object to access the options of the field parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
scampi committed Dec 9, 2016
1 parent 7f85803 commit ef95ceb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ uiModules
// if field param exists, compute allowed fields
if (param.name === 'field') {
fields = $aggParamEditorsScope.indexedFields;
$aggParamEditorsScope.showAnalyzedWarning = param.showAnalyzedWarning;
} else if (param.type === 'field') {
fields = $aggParamEditorsScope[`${param.name}Options`] = param.getFieldOptions($scope.agg);
}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/agg_types/controls/field.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Field
</label>

<span class="pull-right text-warning hintbox-label" ng-show="showAnalyzedWarning && agg.params.field.analyzed"
<span class="pull-right text-warning hintbox-label" ng-show="aggParam.showAnalyzedWarning && agg.params.field.analyzed"
ng-click="showAnalyzedFieldWarning = !showAnalyzedFieldWarning">
<i class="fa fa-warning"></i> Analyzed Field
</span>
Expand Down

0 comments on commit ef95ceb

Please sign in to comment.