diff options
Diffstat (limited to 'polygerrit-ui/app/elements/shared/gr-js-api-interface/gr-plugin-action-context.ts')
-rw-r--r-- | polygerrit-ui/app/elements/shared/gr-js-api-interface/gr-plugin-action-context.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polygerrit-ui/app/elements/shared/gr-js-api-interface/gr-plugin-action-context.ts b/polygerrit-ui/app/elements/shared/gr-js-api-interface/gr-plugin-action-context.ts index 46c7ad6a33..2f9bbcfba3 100644 --- a/polygerrit-ui/app/elements/shared/gr-js-api-interface/gr-plugin-action-context.ts +++ b/polygerrit-ui/app/elements/shared/gr-js-api-interface/gr-plugin-action-context.ts @@ -22,7 +22,7 @@ import {UIActionInfo} from './gr-change-actions-js-api'; import {windowLocationReload} from '../../../utils/dom-util'; import {PopupPluginApi} from '../../../api/popup'; import {GrPopupInterface} from '../../plugins/gr-popup-interface/gr-popup-interface'; -import {appContext} from '../../../services/app-context'; +import {getAppContext} from '../../../services/app-context'; interface ButtonCallBacks { onclick: (event: Event) => boolean; @@ -31,7 +31,7 @@ interface ButtonCallBacks { export class GrPluginActionContext { private popups: PopupPluginApi[] = []; - private readonly reporting = appContext.reportingService; + private readonly reporting = getAppContext().reportingService; constructor( public readonly plugin: PluginApi, |