send param in callback for get-param-options

This commit is contained in:
Sven Klemm
2018-05-27 17:25:20 +02:00
parent 039e38d510
commit d77f9b2e74
@@ -15,7 +15,7 @@ var template = `
/** @ngInject */
export function sqlPartEditorDirective($compile, templateSrv) {
var paramTemplate = '<input type="text" class="hide input-mini tight-form-func-param"></input>';
var paramTemplate = '<input type="text" class="hide input-mini"></input>';
return {
restrict: 'E',
@@ -101,7 +101,7 @@ export function sqlPartEditorDirective($compile, templateSrv) {
}
$scope.$apply(function() {
$scope.handleEvent({ $event: { name: 'get-param-options' } }).then(function(result) {
$scope.handleEvent({ $event: { name: 'get-param-options', param: param } }).then(function(result) {
var dynamicOptions = _.map(result, function(op) {
return op.value;
});