mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
stackdriver: use correct event name
This commit is contained in:
@@ -23,7 +23,7 @@ export class StackdriverAggregationCtrl {
|
|||||||
this.setAlignOptions();
|
this.setAlignOptions();
|
||||||
$scope.onAlignmentChange = this.onAlignmentChange.bind(this);
|
$scope.onAlignmentChange = this.onAlignmentChange.bind(this);
|
||||||
$scope.onAggregationChange = this.onAggregationChange.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) {
|
onAlignmentChange(newVal: string) {
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ export class StackdriverQueryCtrl extends QueryCtrl {
|
|||||||
const { valueType, metricKind } = this.metricDescriptors.find(m => m.type === this.target.metricType);
|
const { valueType, metricKind } = this.metricDescriptors.find(m => m.type === this.target.metricType);
|
||||||
this.target.valueType = valueType;
|
this.target.valueType = valueType;
|
||||||
this.target.metricKind = metricKind;
|
this.target.metricKind = metricKind;
|
||||||
this.$scope.$broadcast('metricTypeChange');
|
this.$scope.$broadcast('metricTypeChanged');
|
||||||
this.refresh();
|
this.refresh();
|
||||||
this.getLabels();
|
this.getLabels();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user