]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: qemu/OSTypeEdit: drop throwing an error on multiple widgets
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 22 Sep 2021 09:27:44 +0000 (11:27 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 4 Oct 2021 06:55:05 +0000 (08:55 +0200)
we will have multiple panels with the same widget. Instead
of raising an error in that case, simply ignore it, since
we normally only want to set the default initially, not when
users configured something else

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

index 438d7c6bf62f548ff84d421cceddf681170c3055..fad56e8a08823741a27c2fa3984f292b4a0963d6 100644 (file)
@@ -37,7 +37,7 @@ Ext.define('PVE.qemu.OSTypeInputPanel', {
            if (widgets.length === 1) {
                widgets[0].setValue(newValue);
            } else {
-               throw 'non unique widget :' + widget + ' in Wizard';
+               // ignore multiple disks, we only want to set the type if there is a single disk
            }
        },
     },