Annotations: Call panel refresh when table transform changes to annotations (#22323)

This commit is contained in:
Miguel Carvajal 2020-02-20 07:11:42 +01:00 committed by GitHub
parent 9a65c5a90d
commit 49fe4ff69e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,12 +67,16 @@ export class TablePanelEditorCtrl {
transformChanged() {
this.panel.columns = [];
if (this.panel.transform === 'timeseries_aggregations') {
this.panel.columns.push({ text: 'Avg', value: 'avg' });
}
if (this.panel.transform === 'annotations') {
this.panelCtrl.refresh();
} else {
if (this.panel.transform === 'timeseries_aggregations') {
this.panel.columns.push({ text: 'Avg', value: 'avg' });
}
this.updateTransformHints();
this.render();
this.updateTransformHints();
this.render();
}
}
render() {