[pve-devel] [PATCH manager 4/4] lxc: use mount point editor in create wizard

Wolfgang Bumiller w.bumiller at proxmox.com
Mon Feb 22 14:33:42 CET 2016


---
 www/manager/lxc/CreateWizard.js | 28 ++++++++++------------------
 1 file changed, 10 insertions(+), 18 deletions(-)

diff --git a/www/manager/lxc/CreateWizard.js b/www/manager/lxc/CreateWizard.js
index 53b8c57..2bf32ac 100644
--- a/www/manager/lxc/CreateWizard.js
+++ b/www/manager/lxc/CreateWizard.js
@@ -43,6 +43,14 @@ Ext.define('PVE.lxc.CreateWizard', {
 	    }
 	});
 
+	var rootfspanel = Ext.create('PVE.lxc.MountPointInputPanel', {
+	    title: gettext('Root Disk'),
+	    insideWizard: true,
+	    create: true,
+	    unused: false,
+	    confid: 'rootfs',
+	});
+
 	var networkpanel = Ext.create('PVE.lxc.NetworkInputPanel', {
 	    title: gettext('Network'),
 	    insideWizard: true,
@@ -69,6 +77,7 @@ Ext.define('PVE.lxc.CreateWizard', {
 				    tmplsel.setStorage(undefined, value);
 				    networkpanel.setNodename(value);
 				    storagesel.setNodename(value);
+				    rootfspanel.setNodename(value);
 				}
 			    }
 			},
@@ -141,24 +150,7 @@ Ext.define('PVE.lxc.CreateWizard', {
 		    title: gettext('Template'),
 		    column1: [ tmplstoragesel, tmplsel]
 		},
-		{
-		    xtype: 'inputpanel',
-		    title: gettext('Root Disk'),
-		    column1: [
-			storagesel,
-			{
-			    xtype: 'numberfield',
-			    name: 'rootfs',
-			    minValue: 0.1,
-			    maxValue: 128*1024,
-			    decimalPrecision: 3,
-			    value: '8',
-			    step: 1,
-			    fieldLabel: gettext('Disk size') + ' (GB)',
-			    allowBlank: false
-			}
-		    ]
-		},
+		rootfspanel,
 		{
 		    xtype: 'pveLxcCPUInputPanel',
 		    title: gettext('CPU'),
-- 
2.1.4





More information about the pve-devel mailing list