From: Dominik Csapak <d.csapak@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [PATCH datacenter-manager] ui: pve: snapshots: description edit: close window on successful edit
Date: Tue, 26 May 2026 10:24:28 +0200 [thread overview]
Message-ID: <20260526082434.858047-1-d.csapak@proxmox.com> (raw)
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
next reply other threads:[~2026-05-26 8:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-26 8:24 Dominik Csapak [this message]
2026-05-26 8:41 ` [PATCH datacenter-manager] ui: pve: snapshots: description edit: close window on successful edit Fabian Grünbichler
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=20260526082434.858047-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 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.