AngularPanels: Fixes issue with angular panels caused by reason babel upgrade (#32738)

This commit is contained in:
Torkel Ödegaard 2021-04-07 09:34:30 +02:00 committed by GitHub
parent fbabed203f
commit 2c8728a2a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 7 deletions

View File

@ -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));

View File

@ -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' },