From 31ddcdb37e99a00c1f94b42a5092bfc52af3746e Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Fri, 28 Sep 2018 16:20:16 +0200 Subject: [PATCH] stackdriver: make sure labels are loaded when service is changed in dropdown --- public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts b/public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts index dc3bd853463..173c5b801f9 100644 --- a/public/app/plugins/datasource/stackdriver/query_filter_ctrl.ts +++ b/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 {