]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: iso selector: disable all fields to avoid bogus validation
authorFiona Ebner <f.ebner@proxmox.com>
Mon, 4 Dec 2023 09:29:56 +0000 (10:29 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 4 Dec 2023 15:47:05 +0000 (16:47 +0100)
The validation logic of the inner fields from the ISO selector was not
disabled, so a user would need to select a valid storage and ISO file
before being able to make any other choice for the general CD-ROM
drive source (no-media or physical-drive).

Call the parent method to ensure all the inner fields get actually
disabled so that their validators also get disarmed if not relevant.

Reported in the communiy forum:
https://forum.proxmox.com/threads/136960/post-611704

Fixes: fc7b556d ("ui: refactor iso-selector out of the cd input panel")
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
 [ TL: add more background to commit message/subject ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/form/IsoSelector.js

index 0bc6346c1cb8255cb5c7b917b53744f10b2662d0..0f1bf744d656de44a04fe1691ef1afd1ecb9d9ed 100644 (file)
@@ -61,7 +61,7 @@ Ext.define('PVE.form.IsoSelector', {
        let me = this;
        me.lookup('storage').setDisabled(disabled);
        me.lookup('file').setDisabled(disabled);
-       me.callParent();
+       return me.callParent([disabled]);
     },
 
     referenceHolder: true,