[pmg-devel] applied: [PATCH pmg-gui] ui: trim whitespaces when adding a subscription key
Stoiko Ivanov
s.ivanov at proxmox.com
Fri Mar 1 11:41:48 CET 2024
Thanks for the patch! applied after testing it in a fresh pmg-8.1 container
On Fri, 1 Mar 2024 10:54:30 +0100
Stefan Sterz <s.sterz at proxmox.com> wrote:
> 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 at proxmox.com>
> ---
> js/Subscription.js | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/js/Subscription.js b/js/Subscription.js
> index 2293cdb..6d7380c 100644
> --- 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'),
More information about the pmg-devel
mailing list