mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
set the default value of the showAnalyzedWarning in fieldparam
This commit is contained in:
parent
30901820de
commit
0d924fc73d
2 changed files with 2 additions and 5 deletions
|
@ -86,11 +86,7 @@ uiModules
|
|||
// if field param exists, compute allowed fields
|
||||
if (param.name === 'field') {
|
||||
fields = $aggParamEditorsScope.indexedFields;
|
||||
$aggParamEditorsScope.showAnalyzedWarning = true;
|
||||
if (!_.isUndefined(param.showAnalyzedWarning) && !param.showAnalyzedWarning) {
|
||||
// if not explicitly set, always show the warning about analyzed field
|
||||
$aggParamEditorsScope.showAnalyzedWarning = false;
|
||||
}
|
||||
$aggParamEditorsScope.showAnalyzedWarning = param.showAnalyzedWarning;
|
||||
} else if (param.type === 'field') {
|
||||
fields = $aggParamEditorsScope[`${param.name}Options`] = param.getFieldOptions($scope.agg);
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@ export default function FieldAggParamFactory(Private, $filter) {
|
|||
FieldAggParam.prototype.filterFieldTypes = '*';
|
||||
// retain only the fields with the aggregatable property if the onlyAggregatable option is true
|
||||
FieldAggParam.prototype.onlyAggregatable = true;
|
||||
FieldAggParam.prototype.showAnalyzedWarning = true;
|
||||
|
||||
/**
|
||||
* Called to serialize values for saving an aggConfig object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue