From: Dominik Csapak <d.csapak@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [PATCH datacenter-manager] ui: views: force reload after a layout change
Date: Tue, 9 Dec 2025 14:12:51 +0100 [thread overview]
Message-ID: <20251209131258.2290371-1-d.csapak@proxmox.com> (raw)
if during editing a new panel type is added for which the data was not
loaded, this would show the reload animation until the next reload or
force refresh.
To make this more intuitive, automatically force a refresh when editing
is finished to populate all existing panels with data.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
ui/src/dashboard/view.rs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ui/src/dashboard/view.rs b/ui/src/dashboard/view.rs
index f45f4622..4a0400ac 100644
--- a/ui/src/dashboard/view.rs
+++ b/ui/src/dashboard/view.rs
@@ -408,6 +408,8 @@ impl Component for ViewComp {
}
Msg::UpdateResult(res) => {
self.update_result.update(res);
+ // force reload after layout changed to catch new panel types
+ ctx.link().send_message(Msg::Reload(true));
}
Msg::ForceSubscriptionUpdate => {
let link = ctx.link().clone();
--
2.47.3
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
next reply other threads:[~2025-12-09 13:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-09 13:12 Dominik Csapak [this message]
2025-12-09 16:43 ` [pdm-devel] applied: " Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251209131258.2290371-1-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox