]> git.proxmox.com Git - proxmox-backup.git/commit
ui: trim whitespaces when adding a subscription key
authorStefan Sterz <s.sterz@proxmox.com>
Fri, 1 Mar 2024 09:40:19 +0000 (10:40 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 1 Mar 2024 09:44:40 +0000 (10:44 +0100)
commit9d66b5b5c328a064b346912ed4129226fe8780b7
treef3b498dd6824350a6e6d12027bfe3d4811ecdb97
parentdeb33767d5cabe3658de3b48336d01356b187e24
ui: trim whitespaces when adding a subscription key

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.

Switch to using our `proxmoxtextfield` component that provides a
`trimValue` config option since widget-toolkit commit 5d7d30d ("text
field: add trimValue config") that was made just for this case.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
 [ TL: reference widget toolkit commit ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/Subscription.js