mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Azure: Fixed dropdowns not showing current value (#22914)
This commit is contained in:
parent
82632bf31e
commit
d16211b782
@ -1,6 +1,7 @@
|
|||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import coreModule from '../../core_module';
|
import coreModule from '../../core_module';
|
||||||
import { ISCEService } from 'angular';
|
import { ISCEService } from 'angular';
|
||||||
|
import { promiseToDigest } from 'app/core/utils/promiseToDigest';
|
||||||
|
|
||||||
function typeaheadMatcher(this: any, item: string) {
|
function typeaheadMatcher(this: any, item: string) {
|
||||||
let str = this.query;
|
let str = this.query;
|
||||||
@ -101,8 +102,7 @@ export class FormDropdownCtrl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getOptionsInternal(query: string) {
|
getOptionsInternal(query: string) {
|
||||||
const result = this.getOptions({ $query: query });
|
return promiseToDigest(this.$scope)(Promise.resolve(this.getOptions({ $query: query })));
|
||||||
return Promise.resolve(result);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
isPromiseLike(obj: any) {
|
isPromiseLike(obj: any) {
|
||||||
|
Loading…
Reference in New Issue
Block a user