Ver código fonte

stackdriver: make sure labels are loaded when service is changed in dropdown

Erik Sundell 7 anos atrás
pai
commit
31ddcdb37e

+ 1 - 0
public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts

@@ -161,6 +161,7 @@ export class StackdriverFilterCtrl {
     this.target.service = this.service;
     this.target.service = this.service;
     this.metrics = this.getMetricsList();
     this.metrics = this.getMetricsList();
     this.setMetricType();
     this.setMetricType();
+    this.getLabels();
     if (!this.metrics.find(m => m.value === this.target.metricType)) {
     if (!this.metrics.find(m => m.value === this.target.metricType)) {
       this.target.metricType = this.$scope.defaultDropdownValue;
       this.target.metricType = this.$scope.defaultDropdownValue;
     } else {
     } else {