Fix eslint errors again.
This commit is contained in:
parent
43714c1b1d
commit
727b2fc313
@ -115,6 +115,7 @@ angular.module('accountant.operations', [
|
|||||||
size: '60%',
|
size: '60%',
|
||||||
dataLabels: {
|
dataLabels: {
|
||||||
formatter: function() {
|
formatter: function() {
|
||||||
|
// eslint-disable-next-line angular/controller-as-vm
|
||||||
return this.point.name;
|
return this.point.name;
|
||||||
},
|
},
|
||||||
distance: -40
|
distance: -40
|
||||||
@ -126,8 +127,14 @@ angular.module('accountant.operations', [
|
|||||||
size: '60%',
|
size: '60%',
|
||||||
dataLabels: {
|
dataLabels: {
|
||||||
formatter: function() {
|
formatter: function() {
|
||||||
return this.point.name !== null && this.percentage >=
|
// eslint-disable-next-line angular/controller-as-vm
|
||||||
2.5 ? this.point.name : null; }
|
if (this.point.name !== null && this.percentage >= 2.5) {
|
||||||
|
// eslint-disable-next-line angular/controller-as-vm
|
||||||
|
return this.point.name;
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user