]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: storage: avoid deleting preallocation setting on creation
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 10 Nov 2021 21:03:05 +0000 (22:03 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 10 Nov 2021 21:03:13 +0000 (22:03 +0100)
reported in the forum: https://forum.proxmox.com/threads/.99471/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/storage/Base.js

index e5bee0c1875ef91d6d8661e97b477c53d5e29d6b..89dc2eff2b189aa6f5bee6470f913b2b5ab983ee 100644 (file)
@@ -59,6 +59,7 @@ Ext.define('PVE.panel.StorageBase', {
                name: 'preallocation',
                fieldLabel: gettext('Preallocation'),
                allowBlank: false,
+               deleteEmpty: !me.isCreate,
                value: '__default__',
            };