mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Merge pull request #5621 from w33ble/index-has-time-field
Add indexPattern.hasTimeField
This commit is contained in:
commit
94b6abacae
1 changed files with 4 additions and 0 deletions
|
@ -185,6 +185,10 @@ define(function (require) {
|
|||
}
|
||||
};
|
||||
|
||||
self.hasTimeField = function () {
|
||||
return !!(this.timeFieldName && this.fields.byName[this.timeFieldName]);
|
||||
};
|
||||
|
||||
self.prepBody = function () {
|
||||
var body = {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue