From a03c5ba09242cb93a8288b4402db171cfde28593 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Sun, 19 Jun 2016 22:23:20 +0300 Subject: [PATCH] Update metrics when item selected from dropdown. --- src/datasource-zabbix/query.controller.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/datasource-zabbix/query.controller.js b/src/datasource-zabbix/query.controller.js index ddd23b7..ca271cc 100644 --- a/src/datasource-zabbix/query.controller.js +++ b/src/datasource-zabbix/query.controller.js @@ -40,6 +40,11 @@ export class ZabbixQueryController extends QueryCtrl { // Update metric suggestion when template variable was changed $rootScope.$on('template-variable-value-updated', () => this.onVariableChange()); + // Update metrics when item selected from dropdown + $scope.$on('typeahead-updated', () => { + this.onTargetBlur(); + }); + this.init = function() { var target = this.target;