some egw object interface changes and using it in app.ts base object

This commit is contained in:
Ralf Becker
2020-01-27 13:43:13 +01:00
parent 5b5c2a6cff
commit 9f574b4a38
2 changed files with 27 additions and 6 deletions

View File

@ -108,7 +108,7 @@ export abstract class EgwApp
*
* @var {egw}
*/
egw: any;
egw: IegwAppLocal;
sidebox: JQuery;
@ -428,7 +428,7 @@ export abstract class EgwApp
url = egw.link('/index.php', jQuery.extend({'favorite': safe_name}, egw.link_get_registry(this.appname, 'list')));
}
// if no list try index value from application
else if (egw.app(this.appname).index)
else if (egw.app(this.appname)?.index)
{
url = egw.link('/index.php', 'menuaction='+egw.app(this.appname).index+'&favorite='+safe_name);
}