public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup] ui: trim whitespaces when adding a subscription key
@ 2024-03-01  9:40 Stefan Sterz
  2024-03-01  9:45 ` [pbs-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Sterz @ 2024-03-01  9:40 UTC (permalink / raw)
  To: pbs-devel

users that add the correct subscription key just get unnecessarily
confused with a "value does not match the regex pattern" error if
they accidentally have a stray whitespace at the end or beginning
otherwise.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
---
 www/Subscription.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/Subscription.js b/www/Subscription.js
index 7f1de468..0780c4d4 100644
--- a/www/Subscription.js
+++ b/www/Subscription.js
@@ -8,7 +8,8 @@ Ext.define('PBS.SubscriptionKeyEdit', {
     onlineHelp: 'get_help',
 
     items: {
-	xtype: 'textfield',
+	xtype: 'proxmoxtextfield',
+	trimValue: true,
 	labelWidth: 120,
 	name: 'key',
 	value: '',
-- 
2.39.2





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

end of thread, other threads:[~2024-03-01  9:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-01  9:40 [pbs-devel] [PATCH proxmox-backup] ui: trim whitespaces when adding a subscription key Stefan Sterz
2024-03-01  9:45 ` [pbs-devel] applied: " 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