feat(panels): minor fixes
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user