Fix digest issue with query part editor's actions menu (#21834)
(cherry picked from commit 1ef91e3fc4)
This commit is contained in:
committed by
Alexander Zobnin
parent
5bc6a3505d
commit
338c2b738e
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user