projects
/
pmg-gui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a2fbe7
)
ui: trim whitespaces when adding a subscription key
master
author
Stefan Sterz
<s.sterz@proxmox.com>
Fri, 1 Mar 2024 09:54:30 +0000
(10:54 +0100)
committer
Stoiko Ivanov
<s.ivanov@proxmox.com>
Fri, 1 Mar 2024 10:38:52 +0000
(11:38 +0100)
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>
js/Subscription.js
patch
|
blob
|
blame
|
history
diff --git
a/js/Subscription.js
b/js/Subscription.js
index 2293cdb0ea036dbcf1d62fb166c46031c3ae2b42..6d7380cd8ca02740138219ecb913ebbd6a5398a6 100644
(file)
--- a/
js/Subscription.js
+++ b/
js/Subscription.js
@@
-8,7
+8,8
@@
Ext.define('PMG.SubscriptionKeyEdit', {
onlineHelp: 'getting_help',
items: {
- xtype: 'textfield',
+ xtype: 'proxmoxtextfield',
+ trimValue: true,
name: 'key',
value: '',
fieldLabel: gettext('Subscription Key'),