Fix TS errors on dialog widget

This commit is contained in:
Hadi Nategh 2020-02-04 18:35:46 +01:00
parent 025b2cc431
commit 5617b6c33d

View File

@ -529,7 +529,7 @@ class et2_dialog extends et2_widget {
* *
* @param {string|egw} _egw_or_appname egw object with already loaded translations or application name to load translations for * @param {string|egw} _egw_or_appname egw object with already loaded translations or application name to load translations for
*/ */
static _create_parent(_egw_or_appname? : string) { static _create_parent(_egw_or_appname? : string | IegwAppLocal) {
if (typeof _egw_or_appname == 'undefined') { if (typeof _egw_or_appname == 'undefined') {
// @ts-ignore // @ts-ignore
_egw_or_appname = egw_appName; _egw_or_appname = egw_appName;
@ -796,7 +796,7 @@ class et2_dialog extends et2_widget {
// Update totals // Update totals
totals.widget.set_value(egw.lang( totals.widget.set_value(egw.lang(
"Total: %1 Successful: %2 Failed: %3 Skipped: %4", "Total: %1 Successful: %2 Failed: %3 Skipped: %4",
_list.length, totals.success, totals.failed, totals.skipped _list.length, <string><unknown>totals.success, <string><unknown>totals.failed, <string><unknown>totals.skipped
)); ));
// Fire next step // Fire next step