]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
disk list: allow wiping individual partitions
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 6 Oct 2021 09:18:47 +0000 (11:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Nov 2021 13:40:39 +0000 (14:40 +0100)
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
src/panel/DiskList.js

index 90a655344270d085a61e18eeb8e54697128d0c35..eb8b1a870d656882933a74c6e648465dd7e8be42 100644 (file)
@@ -399,14 +399,6 @@ Ext.define('Proxmox.DiskList', {
                    return `${mainMessage}<br><br>${additionalInfo}`;
                },
                disabled: true,
-               enableFn: function(rec) {
-                   // TODO enable for partitions once they can be selected for ZFS,LVM,etc. creation
-                   if (!rec || rec.data.parent) {
-                       return false;
-                   } else {
-                       return true;
-                   }
-               },
                handler: 'wipeDisk',
            });
        }