Fix bug with discover time interval IconTip not interpolating values. (#17359)

This commit is contained in:
CJ Cenizal 2018-03-22 16:59:02 -07:00 committed by GitHub
parent a7147f2ca7
commit 6567f35660
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -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();
});

View file

@ -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 }}