[pdm-devel] [PATCH datacenter-manager] ui: views: force reload after a layout change

Dominik Csapak d.csapak at proxmox.com
Tue Dec 9 14:12:51 CET 2025


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 at 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





More information about the pdm-devel mailing list