mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 08:19:45 +01:00
add Promise<Et2Dialog> return type to openDialog
This commit is contained in:
parent
a379df8aeb
commit
b1a4a45bb1
@ -756,7 +756,7 @@ export abstract class EgwApp
|
||||
* @param _menuaction
|
||||
* @return Promise<Et2Dialog>
|
||||
*/
|
||||
openDialog(_menuaction : string)
|
||||
openDialog(_menuaction : string) : Promise<Et2Dialog>
|
||||
{
|
||||
let resolver;
|
||||
let rejector;
|
||||
|
5
api/js/jsapi/egw_global.d.ts
vendored
5
api/js/jsapi/egw_global.d.ts
vendored
@ -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
|
||||
@ -1130,9 +1131,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<any>
|
||||
* @return Promise<Et2Dialog>
|
||||
*/
|
||||
openDialog(_menuaction : string) : Promise<any>;
|
||||
openDialog(_menuaction : string) : Promise<Et2Dialog>;
|
||||
|
||||
/**
|
||||
* Open a (centered) popup window with given size and url
|
||||
|
Loading…
Reference in New Issue
Block a user