[pve-devel] [PATCH manager 02/11] qemu/HDEdit.js: move some fields into advanced options

Dominik Csapak d.csapak at proxmox.com
Thu Apr 5 16:03:47 CEST 2018


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/qemu/HDEdit.js | 62 +++++++++++++++++++++++++++------------------
 1 file changed, 37 insertions(+), 25 deletions(-)

diff --git a/www/manager6/qemu/HDEdit.js b/www/manager6/qemu/HDEdit.js
index f9a38f21..4e0001cd 100644
--- a/www/manager6/qemu/HDEdit.js
+++ b/www/manager6/qemu/HDEdit.js
@@ -163,6 +163,9 @@ Ext.define('PVE.qemu.HDInputPanel', {
 	me.column1 = [];
 	me.column2 = [];
 
+	me.advancedColumn1 = [];
+	me.advancedColumn2 = [];
+
 	if (!me.confid || me.unused) {
 	    me.bussel = Ext.create('PVE.form.ControllerSelector', {
 		vmconfig: me.insideWizard ? {ide2: 'cdrom'} : {}
@@ -216,33 +219,42 @@ Ext.define('PVE.qemu.HDInputPanel', {
 	    name: 'cache',
 	    value: '__default__',
 	    fieldLabel: gettext('Cache')
-	},
-	{
-	    xtype: 'proxmoxcheckbox',
-	    fieldLabel: gettext('No backup'),
-	    name: 'nobackup'
-	},
-	{
-	    xtype: 'proxmoxcheckbox',
-	    hidden: me.insideWizard,
-	    fieldLabel: gettext('Skip replication'),
-	    name: 'noreplicate'
-	},
-	{
-	    xtype: 'proxmoxcheckbox',
-	    fieldLabel: gettext('Discard'),
-	    disabled: me.confid && !me.confid.match(/^scsi/),
-	    reference: 'discard',
-	    name: 'discard'
-	},
-	{
-	    xtype: 'proxmoxcheckbox',
-	    disabled: me.confid && !me.confid.match(/^(virtio|scsi)/),
-	    fieldLabel: 'IO thread',
-	    reference: 'iothread',
-	    name: 'iothread'
 	});
 
+	me.advancedColumn1.push(
+	    {
+		xtype: 'proxmoxcheckbox',
+		fieldLabel: gettext('Discard'),
+		disabled: me.confid && !me.confid.match(/^scsi/),
+		reference: 'discard',
+		labelWidth: labelWidth,
+		name: 'discard'
+	    },
+	    {
+		xtype: 'proxmoxcheckbox',
+		disabled: me.confid && !me.confid.match(/^(virtio|scsi)/),
+		fieldLabel: 'IO thread',
+		labelWidth: labelWidth,
+		reference: 'iothread',
+		name: 'iothread'
+	    }
+	);
+
+	me.advancedColumn2.push(
+	    {
+		xtype: 'proxmoxcheckbox',
+		fieldLabel: gettext('No backup'),
+		labelWidth: labelWidth,
+		name: 'nobackup'
+	    },
+	    {
+		xtype: 'proxmoxcheckbox',
+		fieldLabel: gettext('Skip replication'),
+		labelWidth: labelWidth,
+		name: 'noreplicate'
+	    }
+	);
+
 	me.callParent();
     }
 });
-- 
2.11.0





More information about the pve-devel mailing list