[pve-devel] [PATCH manager 3/5] ext6migrate: change default values

Dominik Csapak d.csapak at proxmox.com
Mon Mar 21 10:53:11 CET 2016


since KVCombobox expects __default__ as default value
change to this in

DisplayEdit
HDEdit
KeyboardEdit
ProcessorEdit

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/qemu/DisplayEdit.js   | 2 +-
 www/manager6/qemu/HDEdit.js        | 2 +-
 www/manager6/qemu/KeyboardEdit.js  | 2 +-
 www/manager6/qemu/ProcessorEdit.js | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/www/manager6/qemu/DisplayEdit.js b/www/manager6/qemu/DisplayEdit.js
index fb9223f..0141e9c 100644
--- a/www/manager6/qemu/DisplayEdit.js
+++ b/www/manager6/qemu/DisplayEdit.js
@@ -24,7 +24,7 @@ Ext.define('PVE.qemu.DisplayEdit', {
 
 	displayField = Ext.createWidget('DisplaySelector', {  
 	    name: 'vga',
-	    value: '',
+	    value: '__default__',
 	    fieldLabel: gettext('Graphic card'),
 	    validator: validateDisplay
 	});
diff --git a/www/manager6/qemu/HDEdit.js b/www/manager6/qemu/HDEdit.js
index 333c658..cfb951e 100644
--- a/www/manager6/qemu/HDEdit.js
+++ b/www/manager6/qemu/HDEdit.js
@@ -92,7 +92,7 @@ Ext.define('PVE.qemu.HDInputPanel', {
 	values.hdimage = drive.file;
 	values.nobackup = !PVE.Parser.parseBoolean(drive.backup, 1);
 	values.diskformat = drive.format || 'raw';
-	values.cache = drive.cache || '';
+	values.cache = drive.cache || '__default__';
 	values.discard = (drive.discard === 'on');
 	values.iothread = PVE.Parser.parseBoolean(drive.iothread);
 
diff --git a/www/manager6/qemu/KeyboardEdit.js b/www/manager6/qemu/KeyboardEdit.js
index f3f1e9e..dbf0300 100644
--- a/www/manager6/qemu/KeyboardEdit.js
+++ b/www/manager6/qemu/KeyboardEdit.js
@@ -9,7 +9,7 @@ Ext.define('PVE.qemu.KeyboardEdit', {
 	    items: {
 		xtype: 'VNCKeyboardSelector',
 		name: 'keyboard',
-		value: '',
+		value: '__default__',
 		fieldLabel: gettext('Keyboard Layout')
 	    }
 	});
diff --git a/www/manager6/qemu/ProcessorEdit.js b/www/manager6/qemu/ProcessorEdit.js
index e2bad11..5339728 100644
--- a/www/manager6/qemu/ProcessorEdit.js
+++ b/www/manager6/qemu/ProcessorEdit.js
@@ -86,7 +86,7 @@ Ext.define('PVE.qemu.ProcessorInputPanel', {
 	    {
 		xtype: 'CPUModelSelector',
 		name: 'cputype',
-		value: '',
+		value: '__default__',
 		fieldLabel: gettext('Type')
 	    },
 	    {
-- 
2.1.4





More information about the pve-devel mailing list