feat(panels): minor fixes

This commit is contained in:
Torkel Ödegaard 2016-01-25 17:58:41 -05:00
parent b0dd79cbfd
commit 53dc21c69b
2 changed files with 7 additions and 3 deletions

View File

@ -35,6 +35,10 @@ export class PanelCtrl {
this.publishAppEvent('panel-instantiated', {scope: this.$scope});
}
renderingCompleted() {
this.$scope.$root.performance.panelsRendered++;
}
refresh() {
return;
}

View File

@ -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() {