all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH datacenter-manager] ui: pve: snapshots: description edit: close window on successful edit
@ 2026-05-26  8:24 Dominik Csapak
  2026-05-26  8:41 ` Fabian Grünbichler
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2026-05-26  8:24 UTC (permalink / raw)
  To: pdm-devel

after updating the description of a snapshot, we have to change the
view back to 'None', otherwise the edit dialog stays open.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 ui/src/widget/snapshot_window.rs | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ui/src/widget/snapshot_window.rs b/ui/src/widget/snapshot_window.rs
index 2d9bd77a..4630759b 100644
--- a/ui/src/widget/snapshot_window.rs
+++ b/ui/src/widget/snapshot_window.rs
@@ -479,7 +479,10 @@ impl LoadableComponent for PdmSnapshotWindow {
                 ctx.link().spawn(async move {
                     match Self::update_description(remote, guest_info, snapname, description).await
                     {
-                        Ok(()) => link.send_reload(),
+                        Ok(()) => {
+                            link.send_reload();
+                            link.change_view(None);
+                        }
                         Err(err) => link.show_error(tr!("Error"), err, true),
                     }
                 });
-- 
2.47.3





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH datacenter-manager] ui: pve: snapshots: description edit: close window on successful edit
  2026-05-26  8:24 [PATCH datacenter-manager] ui: pve: snapshots: description edit: close window on successful edit Dominik Csapak
@ 2026-05-26  8:41 ` Fabian Grünbichler
  0 siblings, 0 replies; 2+ messages in thread
From: Fabian Grünbichler @ 2026-05-26  8:41 UTC (permalink / raw)
  To: pdm-devel, Dominik Csapak


On Tue, 26 May 2026 10:24:28 +0200, Dominik Csapak wrote:
> after updating the description of a snapshot, we have to change the
> view back to 'None', otherwise the edit dialog stays open.
> 
> 

Applied, thanks!

[1/1] ui: pve: snapshots: description edit: close window on successful edit
      commit: 1660cbc890781b5696fc4fa088c832834ed0d8fc

Best regards,
-- 
Fabian Grünbichler <f.gruenbichler@proxmox.com>




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-05-26  8:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-26  8:24 [PATCH datacenter-manager] ui: pve: snapshots: description edit: close window on successful edit Dominik Csapak
2026-05-26  8:41 ` Fabian Grünbichler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal