mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Fix bug with discover time interval IconTip not interpolating values. (#17359)
This commit is contained in:
parent
a7147f2ca7
commit
6567f35660
2 changed files with 8 additions and 1 deletions
|
@ -281,6 +281,13 @@ function discoverController(
|
|||
$state.index = $scope.indexPattern.id;
|
||||
$state.sort = getSort.array($state.sort, $scope.indexPattern);
|
||||
|
||||
$scope.getBucketIntervalToolTipText = () => {
|
||||
return (
|
||||
`This interval creates ${$scope.bucketInterval.scale > 1 ? 'buckets that are too large' : 'too many buckets'}
|
||||
to show in the selected time range, so it has been scaled to ${$scope.bucketInterval.description }`
|
||||
);
|
||||
};
|
||||
|
||||
$scope.$watchCollection('state.columns', function () {
|
||||
$state.save();
|
||||
});
|
||||
|
|
|
@ -119,7 +119,7 @@
|
|||
</select>
|
||||
<span ng-show="bucketInterval.scaled">
|
||||
<icon-tip
|
||||
content="'This interval creates {{ bucketInterval.scale > 1 ? 'buckets that are too large' : 'too many buckets' }} to show in the selected time range, so it has been scaled to {{ bucketInterval.description }}'"
|
||||
content="getBucketIntervalToolTipText()"
|
||||
position="'top'"
|
||||
></icon-tip>
|
||||
Scaled to {{ bucketInterval.description }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue