Commit 2965f588 by Erik Sundell

stackdriver: use correct event name

parent 85fce840
......@@ -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) {
......
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment