public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [PATCH datacenter-manager v2 4/6] ui: view configuration: fix dismissing of remove confirmation dialog
Date: Fri, 27 Nov 2026 18:09:25 +0100	[thread overview]
Message-ID: <20261127170941.4183880-5-d.csapak@proxmox.com> (raw)
In-Reply-To: <20261127170941.4183880-1-d.csapak@proxmox.com>

When dismissing a confirm dialog, we need to reset the `ViewState`,
otherwise the dialog is visible until the user navigates away, or clicks
something that changes the `ViewState`.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 ui/src/configuration/views.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ui/src/configuration/views.rs b/ui/src/configuration/views.rs
index 8016b6d7..955fbb20 100644
--- a/ui/src/configuration/views.rs
+++ b/ui/src/configuration/views.rs
@@ -325,6 +325,7 @@ impl LoadableComponent for ViewGridComp {
                         link.send_message(Msg::Remove(key.clone()));
                     }
                 })
+                .on_close(ctx.link().change_view_callback(|_| None))
                 .into()
             }),
         }
-- 
2.47.3





  parent reply	other threads:[~2026-11-27 17:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 17:09 [PATCH datacenter-manager/yew-widget-toolkit v2 0/6] ui: make the default dashboard configurable and add "My Settings" dialog Dominik Csapak
2026-11-27 17:09 ` [PATCH yew-widget-toolkit v2 1/6] state: event: add helpers for custom DOM events Dominik Csapak
2026-11-27 17:09 ` [PATCH yew-widget-toolkit v2 2/6] state: persistent state: allow listening for updates Dominik Csapak
2026-11-27 17:09 ` [PATCH datacenter-manager v2 3/6] ui: add 'My Settings' dialog with xterm.js and noVNC settings Dominik Csapak
2026-11-27 17:09 ` Dominik Csapak [this message]
2026-11-27 17:09 ` [PATCH datacenter-manager v2 5/6] ui: view selector: use a placeholder that can't conflict with a view Dominik Csapak
2026-11-27 17:09 ` [PATCH datacenter-manager v2 6/6] ui: make the default dashboard page configurable Dominik Csapak

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=20261127170941.4183880-5-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
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal