From 14bc21de98dc47e1283c1ced8e4bf5c38531cdbd Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 15 Oct 2024 14:57:19 -0600 Subject: [PATCH] Fix new account does not update but stays at "loading" --- api/js/etemplate/Et2Tree/Et2Tree.ts | 2 +- mail/js/app.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/Et2Tree/Et2Tree.ts b/api/js/etemplate/Et2Tree/Et2Tree.ts index a63f89e0a6..754ae924d4 100644 --- a/api/js/etemplate/Et2Tree/Et2Tree.ts +++ b/api/js/etemplate/Et2Tree/Et2Tree.ts @@ -514,7 +514,7 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement) implements Fin return Promise.resolve(); } return this.handleLazyLoading(item).then((result) => { - item.item = [...result.item] + Object.assign(item, result); this.requestUpdate("_selectOptions") }) } diff --git a/mail/js/app.js b/mail/js/app.js index d6b0cd316b..84fa3a057c 100755 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -682,7 +682,8 @@ app.classes.mail = AppJS.extend( tree._selectOptions.push({ 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, loading: true, lazy: true