Update metrics when item selected from dropdown.

This commit is contained in:
Alexander Zobnin
2016-06-19 22:23:20 +03:00
parent c3da65e237
commit a03c5ba092

View File

@@ -40,6 +40,11 @@ export class ZabbixQueryController extends QueryCtrl {
// Update metric suggestion when template variable was changed // Update metric suggestion when template variable was changed
$rootScope.$on('template-variable-value-updated', () => this.onVariableChange()); $rootScope.$on('template-variable-value-updated', () => this.onVariableChange());
// Update metrics when item selected from dropdown
$scope.$on('typeahead-updated', () => {
this.onTargetBlur();
});
this.init = function() { this.init = function() {
var target = this.target; var target = this.target;