mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-19 04:18:19 +01:00
Api: Don't block etemplate load load while creating context menu, let it defer
This commit is contained in:
parent
bd0d397080
commit
8be9ffa47b
@ -319,10 +319,15 @@ export class EgwPopupActionImplementation implements EgwActionImplementation {
|
||||
|
||||
// Special handling for nextmatch: only build the menu once and just re-use it.
|
||||
if(!_context.menu && _context.actionLinks && _context.parent?.manager?.data?.nextmatch && !_context.parent.manager.data.menu)
|
||||
{
|
||||
// Don't block load
|
||||
_context.parent.manager.data.menu = {}; // Set it to something or it will do this for every row
|
||||
window.setTimeout(() =>
|
||||
{
|
||||
_context.parent.manager.data.menu = this._buildMenu(_context.actionLinks.filter(l => l.actionObj.type == "popup"), [_context], null);
|
||||
_context.parent.manager.data.menu.showAt(0, 0);
|
||||
_context.parent.manager.data.menu.hide();
|
||||
}, 0);
|
||||
}
|
||||
const contextHandler = (e) => {
|
||||
const x = _node
|
||||
|
Loading…
Reference in New Issue
Block a user