mirror of
https://github.com/grafana/grafana.git
synced 2024-11-24 09:50:29 -06:00
AngularPanels: Fixes issue with angular panels caused by reason babel upgrade (#32738)
This commit is contained in:
parent
fbabed203f
commit
2c8728a2a4
@ -19,9 +19,7 @@ import { PanelModel } from 'app/features/dashboard/state';
|
||||
import { PanelQueryRunner } from '../query/state/PanelQueryRunner';
|
||||
|
||||
class MetricsPanelCtrl extends PanelCtrl {
|
||||
scope: any;
|
||||
datasource: DataSourceApi;
|
||||
$timeout: any;
|
||||
contextSrv: ContextSrv;
|
||||
datasourceSrv: any;
|
||||
timeSrv: any;
|
||||
@ -44,7 +42,6 @@ class MetricsPanelCtrl extends PanelCtrl {
|
||||
this.datasourceSrv = $injector.get('datasourceSrv');
|
||||
this.timeSrv = $injector.get('timeSrv');
|
||||
this.templateSrv = $injector.get('templateSrv');
|
||||
this.scope = $scope;
|
||||
this.panel.datasource = this.panel.datasource || null;
|
||||
|
||||
this.events.on(PanelEvents.refresh, this.onMetricsPanelRefresh.bind(this));
|
||||
|
@ -51,13 +51,10 @@ class SingleStatCtrl extends MetricsPanelCtrl {
|
||||
static templateUrl = 'module.html';
|
||||
|
||||
data: Partial<ShowData> = {};
|
||||
|
||||
fontSizes: any[] = [];
|
||||
fieldNames: string[] = [];
|
||||
|
||||
invalidGaugeRange = false;
|
||||
panel: any;
|
||||
events: any;
|
||||
|
||||
valueNameOptions: any[] = [
|
||||
{ value: 'min', text: 'Min' },
|
||||
{ value: 'max', text: 'Max' },
|
||||
|
Loading…
Reference in New Issue
Block a user