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

This commit is contained in:
Erik Sundell 2018-09-28 16:20:16 +02:00
parent 189f89a9e4
commit 31ddcdb37e

View File

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