[pve-devel] [PATCH manager 4/4] spice: Add enhancements to VM Creation wizard
Aaron Lauterer
a.lauterer at proxmox.com
Fri Sep 13 15:16:24 CEST 2019
enabled if qxl/spice display selected
Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
---
www/manager6/qemu/SystemEdit.js | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/www/manager6/qemu/SystemEdit.js b/www/manager6/qemu/SystemEdit.js
index 846baa73..15ae9a73 100644
--- a/www/manager6/qemu/SystemEdit.js
+++ b/www/manager6/qemu/SystemEdit.js
@@ -79,7 +79,18 @@ Ext.define('PVE.qemu.SystemInputPanel', {
deleteEmpty: false,
fieldLabel: gettext('Graphic card'),
name: 'vga',
- comboItems: PVE.Utils.kvm_vga_driver_array()
+ comboItems: PVE.Utils.kvm_vga_driver_array(),
+ listeners: {
+ change: function(f, value, old) {
+ var sef = this.up().down('pveSpiceEnhancementSelector');
+ if (/^(qxl)(\d?)$/.test(value)) {
+ console.log("matched ", value);
+ sef.setDisabled(false);
+ } else {
+ sef.setDisabled(true);
+ }
+ }
+ }
},
{
xtype: 'proxmoxcheckbox',
@@ -88,6 +99,11 @@ Ext.define('PVE.qemu.SystemInputPanel', {
defaultValue: 0,
deleteDefaultValue: true,
fieldLabel: gettext('Qemu Agent')
+ },
+ {
+ xtype: 'pveSpiceEnhancementSelector',
+ name: 'spice_enhancements',
+ disabled: true,
}
],
--
2.20.1
More information about the pve-devel
mailing list