[pve-devel] [PATCH manager v2 3/3] ui: qemu hd edit: allow importing a disk from the import storage

Filip Schauer f.schauer at proxmox.com
Tue Mar 25 12:10:17 CET 2025


The bug from before is solved, but instead a different bug has appeared:
When I enable the "Import Image" checkbox on the "Disks" tab of the
virtual machine creation wizard, the "Select Image" selector is disabled
by default. It can be enabled by switching the import storage.

On 20/03/2025 14:40, Dominik Csapak wrote:
> + fieldLabel: gettext("Import Image"),
> + listeners: {
> + change: function(_cb, value) {
> + me.lookup('new-disk').setVisible(!value);
> + me.lookup('new-disk').setDisabled(!!value);
> +
> + me.lookup('import-source').setVisible(!!value);
> + me.lookup('import-source').setDisabled(!value);
> + me.lookup('import-source-file').setVisible(!!value);
> +
> + me.lookup('import-target').setVisible(!!value);
> + me.lookup('import-target').setDisabled(!value);
> + },

It seems this can be fixed by adding:

me.lookup('import-source-file').setDisabled(!value);





More information about the pve-devel mailing list