mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Aggregations labels] Address epixa comments about redundant check and more isolated changes.
This commit is contained in:
parent
b9a4582bec
commit
eeb3581014
1 changed files with 5 additions and 6 deletions
|
@ -259,14 +259,13 @@ define(function (require) {
|
|||
};
|
||||
|
||||
AggConfig.prototype.makeLabel = function () {
|
||||
var label = (_.get(this.vis, 'params.mode') === 'percentage') ? 'Percentage of ' : '';
|
||||
label += this.type.makeLabel(this);
|
||||
|
||||
if (this.params.customLabel && this.params.customLabel !== '') {
|
||||
label = this.params.customLabel;
|
||||
if (this.params.customLabel) {
|
||||
return this.params.customLabel;
|
||||
}
|
||||
|
||||
return label;
|
||||
if (!this.type) return '';
|
||||
var pre = (_.get(this.vis, 'params.mode') === 'percentage') ? 'Percentage of ' : '';
|
||||
return pre += this.type.makeLabel(this);
|
||||
};
|
||||
|
||||
AggConfig.prototype.field = function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue