* [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
* [pbs-devel] applied: [PATCH proxmox-backup] ui: trim whitespaces when adding a subscription key
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 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2024-03-01 9:45 UTC (permalink / raw)
To: Proxmox Backup Server development discussion, Stefan Sterz
Am 01/03/2024 um 10:40 schrieb Stefan Sterz:
> 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(-)
>
>
applied, thanks!
^ 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