public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH v2 1/2] ui: autofocus after rendering text fields for 2fa
@ 2021-02-04 15:32 Oguz Bektas
  2021-02-04 15:32 ` [pbs-devel] [PATCH 2/2] ui: wrap regexText in gettext() for translations Oguz Bektas
  2021-02-05  5:56 ` [pbs-devel] applied: [PATCH v2 1/2] ui: autofocus after rendering text fields for 2fa Thomas Lamprecht
  0 siblings, 2 replies; 4+ messages in thread
From: Oguz Bektas @ 2021-02-04 15:32 UTC (permalink / raw)
  To: pbs-devel; +Cc: Oguz Bektas, Thomas Lamprecht

Co-Authored-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Oguz Bektas <o.bektas@proxmox.com>
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
---

yes indeed, much better with the arrow function, thanks thomas :)

 www/LoginView.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/LoginView.js b/www/LoginView.js
index f7380339..c7f3e857 100644
--- a/www/LoginView.js
+++ b/www/LoginView.js
@@ -338,6 +338,7 @@ Ext.define('PBS.login.TfaWindow', {
 		    // non-visible tab, so we can just directly use the valid param
 		    this.getViewModel().set('canConfirm', valid);
 		},
+		afterrender: field => field.focus(), // ensure focus after initial render
 	    },
 	},
 
-- 
2.20.1




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

* [pbs-devel] [PATCH 2/2] ui: wrap regexText in gettext() for translations
  2021-02-04 15:32 [pbs-devel] [PATCH v2 1/2] ui: autofocus after rendering text fields for 2fa Oguz Bektas
@ 2021-02-04 15:32 ` Oguz Bektas
  2021-02-05  5:56   ` [pbs-devel] applied: " Thomas Lamprecht
  2021-02-05  5:56 ` [pbs-devel] applied: [PATCH v2 1/2] ui: autofocus after rendering text fields for 2fa Thomas Lamprecht
  1 sibling, 1 reply; 4+ messages in thread
From: Oguz Bektas @ 2021-02-04 15:32 UTC (permalink / raw)
  To: pbs-devel

also fix a small typo in recovery keys text

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
---
 www/LoginView.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/LoginView.js b/www/LoginView.js
index c7f3e857..4b101425 100644
--- a/www/LoginView.js
+++ b/www/LoginView.js
@@ -525,7 +525,7 @@ Ext.define('PBS.login.TfaWindow', {
 			reference: 'totp',
 			allowBlank: false,
 			regex: /^[0-9]{6}$/,
-			regexText: 'TOTP codes consist of six decimal digits',
+			regexText: gettext('TOTP codes consist of six decimal digits'),
 		    },
 		],
 	    },
@@ -552,7 +552,7 @@ Ext.define('PBS.login.TfaWindow', {
 			reference: 'recoveryKey',
 			allowBlank: false,
 			regex: /^[0-9a-f]{4}(-[0-9a-f]{4}){3}$/,
-			regexText: 'Does not looks like a valid recovery key',
+			regexText: gettext('Does not look like a valid recovery key'),
 		    },
 		    {
 			xtype: 'box',
-- 
2.20.1




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

* [pbs-devel] applied: [PATCH v2 1/2] ui: autofocus after rendering text fields for 2fa
  2021-02-04 15:32 [pbs-devel] [PATCH v2 1/2] ui: autofocus after rendering text fields for 2fa Oguz Bektas
  2021-02-04 15:32 ` [pbs-devel] [PATCH 2/2] ui: wrap regexText in gettext() for translations Oguz Bektas
@ 2021-02-05  5:56 ` Thomas Lamprecht
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Lamprecht @ 2021-02-05  5:56 UTC (permalink / raw)
  To: Proxmox Backup Server development discussion, Oguz Bektas

On 04.02.21 16:32, Oguz Bektas wrote:
> Co-Authored-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
> Tested-by: Oguz Bektas <o.bektas@proxmox.com>
> Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
> ---
> 
> yes indeed, much better with the arrow function, thanks thomas :)
> 
>  www/LoginView.js | 1 +
>  1 file changed, 1 insertion(+)
> 
>

applied, thanks for testing that approach!




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

* [pbs-devel] applied: [PATCH 2/2] ui: wrap regexText in gettext() for translations
  2021-02-04 15:32 ` [pbs-devel] [PATCH 2/2] ui: wrap regexText in gettext() for translations Oguz Bektas
@ 2021-02-05  5:56   ` Thomas Lamprecht
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Lamprecht @ 2021-02-05  5:56 UTC (permalink / raw)
  To: Proxmox Backup Server development discussion, Oguz Bektas

On 04.02.21 16:32, Oguz Bektas wrote:
> also fix a small typo in recovery keys text
> 
> Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
> ---
>  www/LoginView.js | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
>

applied, thanks!




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

end of thread, other threads:[~2021-02-05  5:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-04 15:32 [pbs-devel] [PATCH v2 1/2] ui: autofocus after rendering text fields for 2fa Oguz Bektas
2021-02-04 15:32 ` [pbs-devel] [PATCH 2/2] ui: wrap regexText in gettext() for translations Oguz Bektas
2021-02-05  5:56   ` [pbs-devel] applied: " Thomas Lamprecht
2021-02-05  5:56 ` [pbs-devel] applied: [PATCH v2 1/2] ui: autofocus after rendering text fields for 2fa Thomas Lamprecht

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