From: Stefan Sterz Date: Fri, 1 Mar 2024 09:54:30 +0000 (+0100) Subject: ui: trim whitespaces when adding a subscription key X-Git-Url: https://git.proxmox.com/?p=pmg-gui.git;a=commitdiff_plain;h=bf2ecac32c4f5ad1c5b8378dc93f452b1c243ae8 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. Signed-off-by: Stefan Sterz --- 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'),