fix not translated context menu

window.egw with a reference to the main window in a popup, egw(_app, window) gives one with correct window context / translation in a popup (_app does not matter for translations, they are requested to be loaded from server-side)
This commit is contained in:
ralf 2023-07-14 10:41:48 +02:00
parent b1a4a45bb1
commit 40a4d38776

View File

@ -271,7 +271,7 @@ export class EgwAction {
this is an egw Object as defined in egw_core.js
probably not because it changes on runtime
*/
const localEgw: IegwAppLocal = window.egw(_app);
const localEgw: IegwAppLocal = window.egw(_app, window);
//replaced jQuery calls
if (Array.isArray(_actions)) {
//_actions is now an object for sure