]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: guest import: prevent accidental form field submission on second panel
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 12 Mar 2024 14:13:36 +0000 (15:13 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 14 Mar 2024 14:17:43 +0000 (15:17 +0100)
by overwriting the onGetValues to always return nothing

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/window/GuestImport.js

index ec6079c2c461c450d80b4f7b8e620424e2e2a3d2..f4473c3068442f4cf58b7d03c447cef94980c65e 100644 (file)
@@ -511,6 +511,9 @@ Ext.define('PVE.window.GuestImport', {
                    title: gettext('Advanced'),
                    xtype: 'inputpanel',
 
+                   // the first inputpanel handles the values, prevent
+                   // accidental values from this inputpanel here
+                   onGetValues: () => ({}),
                    column1: [
                        {
                            xtype: 'pveScsiHwSelector',