Commit 31ddcdb3 by Erik Sundell

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

parent 189f89a9
...@@ -161,6 +161,7 @@ export class StackdriverFilterCtrl { ...@@ -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 {
......
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