]> git.proxmox.com Git - pve-manager.git/commitdiff
gui: qemu: allow move disk for EFI Disk again
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 11 Oct 2019 10:09:45 +0000 (12:09 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 11 Oct 2019 10:22:50 +0000 (12:22 +0200)
with commit 0ea3b8499bf289d20edf92532feef59145a4743e we changed how
we define isUsedDisk, which was true for efidisks before, but not
after

use the existing 'isEfi' varable to include them for the move_btn
(but not the resize_btn)

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

index cd65d14d84da7f1235d1f8d7a61389c58e20718e..3d029411c73f83cc2c559c23ed236a2ca4474c74 100644 (file)
@@ -607,7 +607,7 @@ Ext.define('PVE.qemu.HardwareView', {
 
            resize_btn.setDisabled(pending || !isUsedDisk || !diskCap);
 
-           move_btn.setDisabled(pending || !isUsedDisk || !diskCap);
+           move_btn.setDisabled(pending || !(isUsedDisk || isEfi) || !diskCap);
 
            revert_btn.setDisabled(!pending);