initial render/refresh timing issues

This commit is contained in:
Torkel Ödegaard
2018-09-10 16:19:28 +02:00
parent 100ab0ba23
commit df822a660b
4 changed files with 5 additions and 6 deletions

View File

@@ -60,6 +60,7 @@ class MetricsPanelCtrl extends PanelCtrl {
}
private onMetricsPanelRefresh() {
console.log('metrics_panel_ctrl:onRefresh');
// ignore fetching data if another panel is in fullscreen
if (this.otherPanelInFullscreenMode()) {
return;

View File

@@ -57,12 +57,9 @@ export class PanelCtrl {
});
}
init() {
this.dashboard.panelInitialized(this.panel);
}
panelDidMount() {
this.events.emit('component-did-mount');
this.dashboard.panelInitialized(this.panel);
}
renderingCompleted() {
@@ -248,6 +245,7 @@ export class PanelCtrl {
}
render(payload?) {
console.log('panel_ctrl:render');
this.timing.renderStart = new Date().getTime();
this.events.emit('render', payload);
}