* Disable exists filter button for scripted fields in doc viewer * Disabled exists filter button for scripted fields in discover sidebar * Fix reference to non-existent scope variable
This commit is contained in:
parent
6d90c08b5c
commit
24ad8c0374
|
@ -45,7 +45,7 @@
|
|||
></i>
|
||||
</button>
|
||||
</span>
|
||||
<span ng-if="!indexPattern.metaFields.includes(field)">
|
||||
<span ng-if="!indexPattern.metaFields.includes(field) && !mapping[field].scripted">
|
||||
<button
|
||||
class="doc-viewer-button"
|
||||
ng-click="filter('_exists_', field, '+')"
|
||||
|
@ -59,6 +59,9 @@
|
|||
<span ng-if="indexPattern.metaFields.includes(field)" tooltip="Unable to filter for presence of meta fields">
|
||||
<i class="fa fa-asterisk text-muted"></i>
|
||||
</span>
|
||||
<span ng-if="mapping[field].scripted" tooltip="Unable to filter for presence of scripted fields">
|
||||
<i class="fa fa-asterisk text-muted"></i>
|
||||
</span>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
<span ng-if="!field.details.error">
|
||||
<a
|
||||
href=""
|
||||
ng-show="!indexPattern.metaFields.includes(field.name)"
|
||||
ng-show="!field.indexPattern.metaFields.includes(field.name) && !field.scripted"
|
||||
ng-click="onAddFilter('_exists_', field.name, '+')">
|
||||
{{::field.details.exists}}
|
||||
</a>
|
||||
<span
|
||||
ng-show="indexPattern.metaFields.includes(field.name)">
|
||||
ng-show="field.indexPattern.metaFields.includes(field.name) || field.scripted">
|
||||
{{::field.details.exists}}
|
||||
</span>
|
||||
/ {{::field.details.total}} records
|
||||
|
|
Loading…
Reference in a new issue