mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 03:11:01 -06:00
feat(panels): minor fixes
This commit is contained in:
parent
b0dd79cbfd
commit
53dc21c69b
@ -35,6 +35,10 @@ export class PanelCtrl {
|
||||
this.publishAppEvent('panel-instantiated', {scope: this.$scope});
|
||||
}
|
||||
|
||||
renderingCompleted() {
|
||||
this.$scope.$root.performance.panelsRendered++;
|
||||
}
|
||||
|
||||
refresh() {
|
||||
return;
|
||||
}
|
||||
|
@ -14,8 +14,8 @@ export class TextPanelCtrl extends PanelCtrl {
|
||||
content: string;
|
||||
|
||||
/** @ngInject */
|
||||
constructor($scope, private templateSrv, private $sce) {
|
||||
super($scope);
|
||||
constructor($scope, $injector, private templateSrv, private $sce) {
|
||||
super($scope, $injector);
|
||||
|
||||
_.defaults(this.panel, panelDefaults);
|
||||
this.render();
|
||||
@ -35,7 +35,7 @@ export class TextPanelCtrl extends PanelCtrl {
|
||||
} else if (this.panel.mode === 'text') {
|
||||
this.renderText(this.panel.content);
|
||||
}
|
||||
// this.panelRenderingComplete();
|
||||
this.renderingCompleted();
|
||||
}
|
||||
|
||||
refresh() {
|
||||
|
Loading…
Reference in New Issue
Block a user