Commit 53dc21c6 by Torkel Ödegaard

feat(panels): minor fixes

parent b0dd79cb
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment