fix: table panel could not show annotations due to bug introduced in 4.2, fixes #8023

This commit is contained in:
Torkel Ödegaard 2017-04-03 22:07:09 +02:00
parent 95e0010a5b
commit dd800fd14d
2 changed files with 9 additions and 6 deletions

View File

@ -17,6 +17,9 @@
* **Oauth**: Add common type for oauth authorization errors [#6428](https://github.com/grafana/grafana/issues/6428) thx [@amenzhinsky](https://github.com/amenzhinsky)
* **Templating**: Data source variable now supports multi value and panel repeats [#7030](https://github.com/grafana/grafana/issues/7030) thx [@mtanda](https://github.com/mtanda)
## Fixes
* **Table Panel**: Fixed annotation display in table panel, [#8023](https://github.com/grafana/grafana/issues/8023)
# 4.2.0 (2017-03-22)
## Minor Enhancements
* **Templates**: Prevent use of the prefix `__` for templates in web UI [#7678](https://github.com/grafana/grafana/issues/7678)

View File

@ -1,7 +1,7 @@
<div class="table-panel-container">
<div class="table-panel-header-bg" ng-show="ctrl.dataRaw.length>0"></div>
<div class="table-panel-scroll" ng-show="ctrl.dataRaw.length>0">
<div class="table-panel-header-bg" ng-show="ctrl.table.rows.length"></div>
<div class="table-panel-scroll" ng-show="ctrl.table.rows.length">
<table class="table-panel-table">
<thead>
<tr>
@ -21,10 +21,10 @@
</table>
</div>
</div>
<div class="datapoints-warning" ng-show="ctrl.dataRaw.length===0">
<span class="small" >
No datapoints <tip>No datapoints returned from metric query</tip>
</span>
<div class="datapoints-warning" ng-show="ctrl.table.rows.length===0">
<span class="small" >
No data to show <tip>Nothing returned by data query</tip>
</span>
</div>
<div class="table-panel-footer">
</div>