all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup] ui: user view: disable 'Unlock TFA' button by default
@ 2024-08-22 11:08 Christoph Heiss
  2024-08-29 12:12 ` [pbs-devel] applied: " Wolfgang Bumiller
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Heiss @ 2024-08-22 11:08 UTC (permalink / raw)
  To: pbs-devel

Without this, the button is enabled if no entry at all is selected (e.g.
when switching to the 'User Management' tab), with the button then
(obviously) being a noop.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
---
 www/config/UserView.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/config/UserView.js b/www/config/UserView.js
index 19dce06f..812cad39 100644
--- a/www/config/UserView.js
+++ b/www/config/UserView.js
@@ -186,6 +186,7 @@ Ext.define('PBS.config.UserView', {
 	    xtype: 'proxmoxButton',
 	    text: gettext('Unlock TFA'),
 	    handler: 'unlockTfa',
+	    disabled: true,
 	    enableFn: ({ data }) =>
 	        data['totp-locked'] || (data['tfa-locked-until'] > (new Date().getTime() / 1000)),
 	},
-- 
2.45.2



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


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

* [pbs-devel] applied: [PATCH proxmox-backup] ui: user view: disable 'Unlock TFA' button by default
  2024-08-22 11:08 [pbs-devel] [PATCH proxmox-backup] ui: user view: disable 'Unlock TFA' button by default Christoph Heiss
@ 2024-08-29 12:12 ` Wolfgang Bumiller
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Bumiller @ 2024-08-29 12:12 UTC (permalink / raw)
  To: Christoph Heiss; +Cc: pbs-devel

applied, thanks


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


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

end of thread, other threads:[~2024-08-29 12:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-22 11:08 [pbs-devel] [PATCH proxmox-backup] ui: user view: disable 'Unlock TFA' button by default Christoph Heiss
2024-08-29 12:12 ` [pbs-devel] applied: " Wolfgang Bumiller

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