]> git.proxmox.com Git - pve-manager.git/commitdiff
add defaultSize parameter for DiskStorageSelector and set it to 8 for lxc
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 13 Dec 2017 10:34:48 +0000 (11:34 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 11 Jan 2018 11:01:23 +0000 (12:01 +0100)
we had it previously on 8GB for containers, but with the refactoring,
this got lost. this patch changes this back

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/form/DiskStorageSelector.js
www/manager6/lxc/MPEdit.js

index a742e0c8d6987ad12b3e1879d8a5178756ae29de..2067a6ca859443c9059aa4b9269e8c201e973885 100644 (file)
@@ -28,6 +28,10 @@ Ext.define('PVE.form.DiskStorageSelector', {
     // hides the size field (e.g, for the efi disk dialog)
     hideSize: false,
 
+    // sets the intial size value
+    // string because else we get a type confusion
+    defaultSize: '32',
+
     changeStorage: function(f, value) {
        var me = this;
        var formatsel = me.getComponent('diskformat');
@@ -115,7 +119,7 @@ Ext.define('PVE.form.DiskStorageSelector', {
                minValue: 0.001,
                maxValue: 128*1024,
                decimalPrecision: 3,
-               value: '32',
+               value: me.defaultSize,
                allowBlank: false
            },
            {
index 04c9b77c58ca687bbd5d6a7a53012fea2c999404..54eca7b41fe3f814ec4140c17997b2e282d339d6 100644 (file)
@@ -175,6 +175,7 @@ Ext.define('PVE.lxc.MountPointInputPanel', {
            nodename: me.nodename,
            storageContent: 'rootdir',
            autoSelect: true,
+           defaultSize: 8,
            hidden: me.unused || !me.isCreate
        });