all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [yew-devel] [PATCH yew-comp v2 0/2] token panel follow up
@ 2025-10-23 14:44 Shannon Sterz
  2025-10-23 14:44 ` [yew-devel] [PATCH yew-comp v2 1/2] token panel: ask for confirmation when removing a token Shannon Sterz
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Shannon Sterz @ 2025-10-23 14:44 UTC (permalink / raw)
  To: yew-devel

these two patches add a confirmation dialog to the remove token dialog
and also slightly rephrase the wording in the confirmation dialogs in
general for clarity.

Changelog
---------

changes since v1:

- add a patch that clarifies the confim messages (thanks @ Maximiliano
  Sandoval)

Shannon Sterz (2):
  token panel: ask for confirmation when removing a token
  token panel: rephrase "usage sites" to "user of the token" for clarity

 src/token_panel.rs | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

--
2.47.3



_______________________________________________
yew-devel mailing list
yew-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel


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

* [yew-devel] [PATCH yew-comp v2 1/2] token panel: ask for confirmation when removing a token
  2025-10-23 14:44 [yew-devel] [PATCH yew-comp v2 0/2] token panel follow up Shannon Sterz
@ 2025-10-23 14:44 ` Shannon Sterz
  2025-10-23 14:44 ` [yew-devel] [PATCH yew-comp v2 2/2] token panel: rephrase "usage sites" to "user of the token" for clarity Shannon Sterz
  2025-11-06 20:42 ` [yew-devel] applied: [PATCH yew-comp v2 0/2] token panel follow up Thomas Lamprecht
  2 siblings, 0 replies; 4+ messages in thread
From: Shannon Sterz @ 2025-10-23 14:44 UTC (permalink / raw)
  To: yew-devel

by using a `ConfirmButton` instead of just a `Button`.

Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
---
 src/token_panel.rs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/token_panel.rs b/src/token_panel.rs
index 55795a6..d61063a 100644
--- a/src/token_panel.rs
+++ b/src/token_panel.rs
@@ -190,7 +190,9 @@ impl LoadableComponent for ProxmoxTokenView {
                     .on_activate(link.change_view_callback(|_| Some(ViewState::EditToken))),
             )
             .with_child(
-                Button::new(tr!("Remove"))
+                ConfirmButton::new(tr!("Remove"))
+                    .confirm_message(tr!("Are you sure you want to remove the API token? \
+                        All current usage sites will lose access!"))
                     .disabled(disabled)
                     .on_activate(link.callback(|_| Msg::Remove)),
             )
-- 
2.47.3



_______________________________________________
yew-devel mailing list
yew-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel


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

* [yew-devel] [PATCH yew-comp v2 2/2] token panel: rephrase "usage sites" to "user of the token" for clarity
  2025-10-23 14:44 [yew-devel] [PATCH yew-comp v2 0/2] token panel follow up Shannon Sterz
  2025-10-23 14:44 ` [yew-devel] [PATCH yew-comp v2 1/2] token panel: ask for confirmation when removing a token Shannon Sterz
@ 2025-10-23 14:44 ` Shannon Sterz
  2025-11-06 20:42 ` [yew-devel] applied: [PATCH yew-comp v2 0/2] token panel follow up Thomas Lamprecht
  2 siblings, 0 replies; 4+ messages in thread
From: Shannon Sterz @ 2025-10-23 14:44 UTC (permalink / raw)
  To: yew-devel

Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
---
 src/token_panel.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/token_panel.rs b/src/token_panel.rs
index d61063a..e0ca767 100644
--- a/src/token_panel.rs
+++ b/src/token_panel.rs
@@ -192,7 +192,7 @@ impl LoadableComponent for ProxmoxTokenView {
             .with_child(
                 ConfirmButton::new(tr!("Remove"))
                     .confirm_message(tr!("Are you sure you want to remove the API token? \
-                        All current usage sites will lose access!"))
+                        All existing users of the token will lose access!"))
                     .disabled(disabled)
                     .on_activate(link.callback(|_| Msg::Remove)),
             )
@@ -201,7 +201,7 @@ impl LoadableComponent for ProxmoxTokenView {
                 ConfirmButton::new(tr!("Regenerate Secret"))
                     .confirm_message(tr!(
                         "Do you want to regenerate the secret of the selected API token? \
-                        All current usage sites will lose access!"
+                        All existing users of the token will lose access!"
                     ))
                     .disabled(disabled)
                     .on_activate(link.callback(|_| Msg::Regenerate)),
-- 
2.47.3



_______________________________________________
yew-devel mailing list
yew-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel


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

* [yew-devel] applied: [PATCH yew-comp v2 0/2] token panel follow up
  2025-10-23 14:44 [yew-devel] [PATCH yew-comp v2 0/2] token panel follow up Shannon Sterz
  2025-10-23 14:44 ` [yew-devel] [PATCH yew-comp v2 1/2] token panel: ask for confirmation when removing a token Shannon Sterz
  2025-10-23 14:44 ` [yew-devel] [PATCH yew-comp v2 2/2] token panel: rephrase "usage sites" to "user of the token" for clarity Shannon Sterz
@ 2025-11-06 20:42 ` Thomas Lamprecht
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Lamprecht @ 2025-11-06 20:42 UTC (permalink / raw)
  To: yew-devel, Shannon Sterz

On Thu, 23 Oct 2025 16:44:23 +0200, Shannon Sterz wrote:
> these two patches add a confirmation dialog to the remove token dialog
> and also slightly rephrase the wording in the confirmation dialogs in
> general for clarity.
> 
> Changelog
> ---------
> 
> [...]

Applied, thanks!

[1/2] token panel: ask for confirmation when removing a token
      commit: ef1a3dfa6f2d40ba6932ac7c349b32c50f5b6c54
[2/2] token panel: rephrase "usage sites" to "user of the token" for clarity
      commit: 98aa5f50d29cb66bbd4d53982aeb460f02cef636


_______________________________________________
yew-devel mailing list
yew-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel


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

end of thread, other threads:[~2025-11-06 20:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-23 14:44 [yew-devel] [PATCH yew-comp v2 0/2] token panel follow up Shannon Sterz
2025-10-23 14:44 ` [yew-devel] [PATCH yew-comp v2 1/2] token panel: ask for confirmation when removing a token Shannon Sterz
2025-10-23 14:44 ` [yew-devel] [PATCH yew-comp v2 2/2] token panel: rephrase "usage sites" to "user of the token" for clarity Shannon Sterz
2025-11-06 20:42 ` [yew-devel] applied: [PATCH yew-comp v2 0/2] token panel follow up Thomas Lamprecht

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