Fix new account does not update but stays at "loading"

This commit is contained in:
nathan 2024-10-15 14:57:19 -06:00
parent e239f092e4
commit 14bc21de98
2 changed files with 3 additions and 2 deletions

View File

@ -514,7 +514,7 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement) implements Fin
return Promise.resolve(); return Promise.resolve();
} }
return this.handleLazyLoading(item).then((result) => { return this.handleLazyLoading(item).then((result) => {
item.item = [...result.item] Object.assign(item, result);
this.requestUpdate("_selectOptions") this.requestUpdate("_selectOptions")
}) })
} }

View File

@ -682,7 +682,8 @@ app.classes.mail = AppJS.extend(
tree._selectOptions.push({ tree._selectOptions.push({
id: "" + _id, id: "" + _id,
label: this.egw.lang("Loading..."), // Use text instead of label because server side is only sending text
text: this.egw.lang("Loading..."),
selected: false, selected: false,
loading: true, loading: true,
lazy: true lazy: true