diff --git a/api/js/jsapi/egw_app.ts b/api/js/jsapi/egw_app.ts index 136fab16d8..a7b88d605f 100644 --- a/api/js/jsapi/egw_app.ts +++ b/api/js/jsapi/egw_app.ts @@ -755,7 +755,7 @@ export abstract class EgwApp * @param _menuaction * @return Promise */ - openDialog(_menuaction : string) + openDialog(_menuaction : string) : Promise { let resolver; let rejector; diff --git a/api/js/jsapi/egw_global.d.ts b/api/js/jsapi/egw_global.d.ts index 93b2df84df..26125c89ab 100644 --- a/api/js/jsapi/egw_global.d.ts +++ b/api/js/jsapi/egw_global.d.ts @@ -14,6 +14,7 @@ */ import type {EgwApp} from "./egw_app"; +import type {Et2Dialog} from "../etemplate/Et2Dialog/Et2Dialog"; /** * Global egw object (for now created by the diverse JavaScript files) with a TypeScript interface @@ -1118,9 +1119,9 @@ declare interface IegwWndLocal extends IegwGlobal * For popups you have to use the app.ts method openDialog(), which creates the dialog in the correct window / popup. * * @param string _menuaction - * @return Promise + * @return Promise */ - openDialog(_menuaction : string) : Promise; + openDialog(_menuaction : string) : Promise; /** * Open a (centered) popup window with given size and url