mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
Fix digest issue with query part editor's actions menu (#21834)
This commit is contained in:
parent
0fd088c757
commit
1ef91e3fc4
@ -1,6 +1,7 @@
|
||||
import _ from 'lodash';
|
||||
import $ from 'jquery';
|
||||
import coreModule from 'app/core/core_module';
|
||||
import { promiseToDigest } from '../../utils/promiseToDigest';
|
||||
|
||||
const template = `
|
||||
<div class="dropdown cascade-open">
|
||||
@ -138,9 +139,11 @@ export function queryPartEditorDirective(templateSrv: any) {
|
||||
}
|
||||
|
||||
$scope.showActionsMenu = () => {
|
||||
$scope.handleEvent({ $event: { name: 'get-part-actions' } }).then((res: any) => {
|
||||
$scope.partActions = res;
|
||||
});
|
||||
promiseToDigest($scope)(
|
||||
$scope.handleEvent({ $event: { name: 'get-part-actions' } }).then((res: any) => {
|
||||
$scope.partActions = res;
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
$scope.triggerPartAction = (action: string) => {
|
||||
|
Loading…
Reference in New Issue
Block a user