mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Annotations: Call panel refresh when table transform changes to annotations (#22323)
This commit is contained in:
parent
9a65c5a90d
commit
49fe4ff69e
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user