fix(dashboard list): fixed minor issue with dashboard list panel, fixes #4768

This commit is contained in:
Torkel Ödegaard 2016-04-20 09:15:45 -07:00
parent 41e5812a22
commit 7079b5d770
2 changed files with 12 additions and 12 deletions

View File

@ -4,6 +4,7 @@
* **InfluxDB 0.12**: Fixed issue templating and `show tag values` query only returning tags for first measurement, fixes [#4726](https://github.com/grafana/grafana/issues/4726) * **InfluxDB 0.12**: Fixed issue templating and `show tag values` query only returning tags for first measurement, fixes [#4726](https://github.com/grafana/grafana/issues/4726)
* **Templating**: Fixed issue with regex formating when matching multiple values, fixes [#4755](https://github.com/grafana/grafana/issues/4755) * **Templating**: Fixed issue with regex formating when matching multiple values, fixes [#4755](https://github.com/grafana/grafana/issues/4755)
* **Templating**: Fixed issue with custom all value and escaping, fixes [#4736](https://github.com/grafana/grafana/issues/4736) * **Templating**: Fixed issue with custom all value and escaping, fixes [#4736](https://github.com/grafana/grafana/issues/4736)
* **Dashlist**: Fixed issue dashboard list panel and caching tags, fixes [#4768](https://github.com/grafana/grafana/issues/4768)
# 3.0.0-beta5 (2016-04-15) # 3.0.0-beta5 (2016-04-15)

View File

@ -5,8 +5,13 @@ import config from 'app/core/config';
import {PanelCtrl} from 'app/plugins/sdk'; import {PanelCtrl} from 'app/plugins/sdk';
import {impressions} from 'app/features/dashboard/impression_store'; import {impressions} from 'app/features/dashboard/impression_store';
// Set and populate defaults class DashListCtrl extends PanelCtrl {
var panelDefaults = { static templateUrl = 'module.html';
groups: any[];
modes: any[];
panelDefaults = {
query: '', query: '',
limit: 10, limit: 10,
tags: [], tags: [],
@ -16,16 +21,10 @@ var panelDefaults = {
headings: true, headings: true,
}; };
class DashListCtrl extends PanelCtrl {
static templateUrl = 'module.html';
groups: any[];
modes: any[];
/** @ngInject */ /** @ngInject */
constructor($scope, $injector, private backendSrv) { constructor($scope, $injector, private backendSrv) {
super($scope, $injector); super($scope, $injector);
_.defaults(this.panel, panelDefaults); _.defaults(this.panel, this.panelDefaults);
if (this.panel.tag) { if (this.panel.tag) {
this.panel.tags = [this.panel.tag]; this.panel.tags = [this.panel.tag];