parent
f8840f8192
commit
a7056d34ee
|
@ -27,16 +27,14 @@ module.exports = function VislibRenderbotFactory(Private) {
|
|||
|
||||
VislibRenderbot.prototype._getVislibParams = function () {
|
||||
var self = this;
|
||||
// Add attribute which determines whether an index is time based or not.
|
||||
var hasTimeField = self.vis.indexPattern && self.vis.indexPattern.hasTimeField();
|
||||
|
||||
|
||||
return _.assign(
|
||||
{},
|
||||
self.vis.type.params.defaults,
|
||||
{
|
||||
type: self.vis.type.name,
|
||||
hasTimeField: hasTimeField
|
||||
// Add attribute which determines whether an index is time based or not.
|
||||
hasTimeField: self.vis.indexPattern && self.vis.indexPattern.hasTimeField()
|
||||
},
|
||||
self.vis.params
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue