mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-27 05:11:41 +02:00
add Promise<Et2Dialog> return type to openDialog
This commit is contained in:
parent
76307bd52d
commit
cae7ff0c01
@ -755,7 +755,7 @@ export abstract class EgwApp
|
|||||||
* @param _menuaction
|
* @param _menuaction
|
||||||
* @return Promise<Et2Dialog>
|
* @return Promise<Et2Dialog>
|
||||||
*/
|
*/
|
||||||
openDialog(_menuaction : string)
|
openDialog(_menuaction : string) : Promise<Et2Dialog>
|
||||||
{
|
{
|
||||||
let resolver;
|
let resolver;
|
||||||
let rejector;
|
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 {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
|
* 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.
|
* For popups you have to use the app.ts method openDialog(), which creates the dialog in the correct window / popup.
|
||||||
*
|
*
|
||||||
* @param string _menuaction
|
* @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
|
* Open a (centered) popup window with given size and url
|
||||||
|
Loading…
x
Reference in New Issue
Block a user