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 {
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 {
......
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