public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Christoph Heiss <c.heiss@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup] ui: user view: disable 'Unlock TFA' button by default
Date: Thu, 22 Aug 2024 13:08:36 +0200	[thread overview]
Message-ID: <20240822110900.909467-1-c.heiss@proxmox.com> (raw)

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


             reply	other threads:[~2024-08-22 11:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-22 11:08 Christoph Heiss [this message]
2024-08-29 12:12 ` [pbs-devel] applied: " Wolfgang Bumiller

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=20240822110900.909467-1-c.heiss@proxmox.com \
    --to=c.heiss@proxmox.com \
    --cc=pbs-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