]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: subscription upload: trim key from whitespace on submission
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 5 Oct 2023 11:35:29 +0000 (13:35 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 5 Oct 2023 11:43:30 +0000 (13:43 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/node/Subscription.js

index fdcf84bc60547f995bb3b4e8c4d18ca1ddcc092a..6f3f7dab7f604a026362d1ffe4ec28009dcaf1e3 100644 (file)
@@ -10,6 +10,9 @@ Ext.define('PVE.node.SubscriptionKeyEdit', {
        value: '',
        fieldLabel: gettext('Subscription Key'),
        labelWidth: 120,
+       getSubmitValue: function() {
+           return this.processRawValue(this.getRawValue())?.trim();
+       },
     },
 
     initComponent: function() {