* [pdm-devel] [PATCH datacenter-manager] ui: views: force reload after a layout change
@ 2025-12-09 13:12 Dominik Csapak
2025-12-09 16:43 ` [pdm-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2025-12-09 13:12 UTC (permalink / raw)
To: pdm-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pdm-devel] applied: [PATCH datacenter-manager] ui: views: force reload after a layout change
2025-12-09 13:12 [pdm-devel] [PATCH datacenter-manager] ui: views: force reload after a layout change Dominik Csapak
@ 2025-12-09 16:43 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2025-12-09 16:43 UTC (permalink / raw)
To: pdm-devel, Dominik Csapak
On Tue, 09 Dec 2025 14:12:51 +0100, Dominik Csapak wrote:
> 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.
>
> [...]
Applied, thanks!
[1/1] ui: views: force reload after a layout change
commit: d3689975d5a34cd247a29a65d067dc54c359979b
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-09 17:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-09 13:12 [pdm-devel] [PATCH datacenter-manager] ui: views: force reload after a layout change Dominik Csapak
2025-12-09 16:43 ` [pdm-devel] applied: " Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox