mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge pull request #110 from rashidkpc/master
Fix for unreliable trending numbers before query is complete
This commit is contained in:
commit
fe578fa80c
@ -1,6 +1,6 @@
|
||||
<kibana-panel ng-controller='trends' ng-init="init()">
|
||||
|
||||
<div ng-style="panel.style" style="line-height:{{panel.style['font-size']}};display:inline-block;padding-right: 5px;" ng-repeat="query in data">
|
||||
<div ng-style="panel.style" style="line-height:{{panel.style['font-size']}};display:inline-block;padding-right: 5px;" ng-repeat="query in trends">
|
||||
<span ng-class="{'text-success': query.hits.new >= query.hits.old, 'text-error': query.hits.old > query.hits.new}" class='strong'>
|
||||
<i class='large' ng-class="{'icon-caret-up': query.hits.new >= query.hits.old, 'icon-caret-down': query.hits.old > query.hits.new}"></i> {{query.percent}}%
|
||||
</span>
|
||||
|
@ -164,7 +164,8 @@ angular.module('kibana.trends', [])
|
||||
$scope.$emit('render');
|
||||
if(_segment < $scope.index.length-1)
|
||||
$scope.get_data(_segment+1,query_id)
|
||||
|
||||
else
|
||||
$scope.trends = $scope.data
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user