From 7f43909390ea3115a6911adcd57c5f71598c1076 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Tue, 25 Sep 2018 15:16:33 +0200 Subject: [PATCH] stackdriver: typescriptifying controller --- .../datasource/stackdriver/query_aggregation_ctrl.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/app/plugins/datasource/stackdriver/query_aggregation_ctrl.ts b/public/app/plugins/datasource/stackdriver/query_aggregation_ctrl.ts index 79161e0ca8c..d30fb7626cc 100644 --- a/public/app/plugins/datasource/stackdriver/query_aggregation_ctrl.ts +++ b/public/app/plugins/datasource/stackdriver/query_aggregation_ctrl.ts @@ -22,7 +22,7 @@ export class StackdriverAggregationCtrl { aggOptions: any[]; refresh: () => void; - constructor(private $scope) { + constructor($scope) { this.aggOptions = options.aggOptions; this.alignOptions = options.alignOptions; $scope.alignmentPeriods = options.alignmentPeriods; @@ -33,14 +33,14 @@ export class StackdriverAggregationCtrl { this.refresh = $scope.refresh; } - onAlignmentChange(newVal) { + onAlignmentChange(newVal: string) { if (newVal === 'ALIGN_NONE') { this.target.aggregation.crossSeriesReducer = 'REDUCE_NONE'; } this.refresh(); } - onAggregationChange(newVal) { + onAggregationChange(newVal: string) { if (newVal !== 'REDUCE_NONE') { const newAlignmentOption = options.alignOptions.find(o => o.value !== 'ALIGN_NONE'); this.target.aggregation.perSeriesAligner = newAlignmentOption ? newAlignmentOption.value : '';