mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 16:15:42 -06:00
remove on metric type change
This commit is contained in:
parent
014457c486
commit
478cfc195a
@ -60,7 +60,9 @@ export class StackdriverFilterCtrl {
|
||||
|
||||
handleMetricTypeChange(value) {
|
||||
this.target.metricType = value;
|
||||
this.onMetricTypeChange();
|
||||
this.setMetricType();
|
||||
this.$scope.refresh();
|
||||
this.getLabels();
|
||||
}
|
||||
|
||||
initSegments(hideGroupBys: boolean) {
|
||||
@ -191,12 +193,6 @@ export class StackdriverFilterCtrl {
|
||||
}
|
||||
}
|
||||
|
||||
async onMetricTypeChange() {
|
||||
this.setMetricType();
|
||||
this.$scope.refresh();
|
||||
this.getLabels();
|
||||
}
|
||||
|
||||
setMetricType() {
|
||||
const { valueType, metricKind, unit } = this.metricDescriptors.find(
|
||||
m => m.type === this.templateSrv.replace(this.target.metricType)
|
||||
|
Loading…
Reference in New Issue
Block a user