Преглед изворни кода

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

Erik Sundell пре 7 година
родитељ
комит
31ddcdb37e
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts

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

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