Fix missing nm filters

This commit is contained in:
nathan 2022-03-31 08:46:36 -06:00
parent 6120d820aa
commit 9cd746f0b4

View File

@ -2849,13 +2849,35 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
{
// Call all availble setters
this.initAttributes(this.options);
let childPromises = [];
let loadChildren = () =>
{
// Descend recursively into the tree
for(var i = 0; i < this._children.length; i++)
{
try
{
this._children[i].loadingFinished(childPromises);
}
catch(e)
{
egw.debug("error", "There was an error with a widget:\nError:%o\nProblem widget:%o", e.valueOf(), this._children[i], e.stack);
}
}
};
var result = this.doLoadingFinished();
if(typeof result == "object" && result.then)
{
// Widget is waiting. Add to the list
promises.push(result);
result.then(loadChildren);
}
else
{
loadChildren()
}
}
// Input widget