[pve-devel] [PATCH manager 4/5] added clipboard checkbox to DisplayEdit
Markus Frank
m.frank at proxmox.com
Wed Sep 7 11:18:01 CEST 2022
Signed-off-by: Markus Frank <m.frank at proxmox.com>
---
www/manager6/qemu/DisplayEdit.js | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/www/manager6/qemu/DisplayEdit.js b/www/manager6/qemu/DisplayEdit.js
index 9bb1763e..77434b7e 100644
--- a/www/manager6/qemu/DisplayEdit.js
+++ b/www/manager6/qemu/DisplayEdit.js
@@ -33,7 +33,9 @@ Ext.define('PVE.qemu.DisplayInputPanel', {
return;
}
let memoryfield = this.up('panel').down('field[name=memory]');
+ let clipboardbox = this.up('panel').down('field[name=clipboard]');
let disableMemoryField = false;
+ let disableClipboardBox = false;
if (val === "cirrus") {
memoryfield.setEmptyText("4");
@@ -44,11 +46,13 @@ Ext.define('PVE.qemu.DisplayInputPanel', {
} else if (val.match(/^(serial\d|none)$/)) {
memoryfield.setEmptyText("N/A");
disableMemoryField = true;
+ disableClipboardBox = true;
} else {
console.debug("unexpected display type", val);
memoryfield.setEmptyText(Proxmox.Utils.defaultText);
}
memoryfield.setDisabled(disableMemoryField);
+ clipboardbox.setDisabled(disableClipboardBox);
},
},
},
@@ -60,6 +64,11 @@ Ext.define('PVE.qemu.DisplayInputPanel', {
maxValue: 512,
step: 4,
name: 'memory',
+ },
+ {
+ xtype: 'proxmoxcheckbox',
+ fieldLabel: gettext('noVNC clipboard'),
+ name: 'clipboard',
}],
});
--
2.30.2
More information about the pve-devel
mailing list