Update metrics when item selected from dropdown.
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user