From 2965f58838c676d2b693a7d501100ae6e01657d9 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Wed, 26 Sep 2018 13:42:53 +0200 Subject: [PATCH] stackdriver: use correct event name --- .../plugins/datasource/stackdriver/query_aggregation_ctrl.ts | 2 +- public/app/plugins/datasource/stackdriver/query_ctrl.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/plugins/datasource/stackdriver/query_aggregation_ctrl.ts b/public/app/plugins/datasource/stackdriver/query_aggregation_ctrl.ts index 72f3ca47a13..a4f523177a7 100644 --- a/public/app/plugins/datasource/stackdriver/query_aggregation_ctrl.ts +++ b/public/app/plugins/datasource/stackdriver/query_aggregation_ctrl.ts @@ -23,7 +23,7 @@ export class StackdriverAggregationCtrl { this.setAlignOptions(); $scope.onAlignmentChange = this.onAlignmentChange.bind(this); $scope.onAggregationChange = this.onAggregationChange.bind(this); - $scope.$on('metricTypeChange', this.setAlignOptions.bind(this)); + $scope.$on('metricTypeChanged', this.setAlignOptions.bind(this)); } onAlignmentChange(newVal: string) { diff --git a/public/app/plugins/datasource/stackdriver/query_ctrl.ts b/public/app/plugins/datasource/stackdriver/query_ctrl.ts index 7f9b473a15a..4f21e60e123 100644 --- a/public/app/plugins/datasource/stackdriver/query_ctrl.ts +++ b/public/app/plugins/datasource/stackdriver/query_ctrl.ts @@ -194,7 +194,7 @@ export class StackdriverQueryCtrl extends QueryCtrl { const { valueType, metricKind } = this.metricDescriptors.find(m => m.type === this.target.metricType); this.target.valueType = valueType; this.target.metricKind = metricKind; - this.$scope.$broadcast('metricTypeChange'); + this.$scope.$broadcast('metricTypeChanged'); this.refresh(); this.getLabels(); }