Lets try creating options directly when we get them, rather than going through update first

Timing was not getting menu items created soon enough, resulting in IDs instead of names in the options
This commit is contained in:
nathan 2022-12-16 11:48:12 -07:00
parent bf97118963
commit ac97af35cb

View File

@ -68,7 +68,7 @@ export class Et2SelectAccount extends SelectAccountMixin(Et2StaticSelectMixin(Et
fetch.push(this.egw().accounts(this.accountType).then(options => {this.static_options = this.static_options.concat(options)}));
}
this.fetchComplete = Promise.all(fetch)
.then(() => this.requestUpdate("select_options"));
.then(() => this._renderOptions());
}