[pve-devel] [PATCH manager] gui: add virtio-gpu and none to combobox

Dominik Csapak d.csapak at proxmox.com
Mon Jan 28 11:04:30 CET 2019


since 'virtio' is alredy used in that file for a number,
we have to add jslint confusion

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/Utils.js            | 5 ++++-
 www/manager6/qemu/DisplayEdit.js | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js
index cf9cbdc9..c594297e 100644
--- a/www/manager6/Utils.js
+++ b/www/manager6/Utils.js
@@ -19,6 +19,7 @@ Ext.Ajax.defaultHeaders = {
     'Accept': 'application/json'
 };
 
+/*jslint confusion: true */
 Ext.define('PVE.Utils', { utilities: {
 
     // this singleton contains miscellaneous utilities
@@ -307,7 +308,9 @@ Ext.define('PVE.Utils', { utilities: {
 	serial0: gettext('Serial terminal') + ' 0',
 	serial1: gettext('Serial terminal') + ' 1',
 	serial2: gettext('Serial terminal') + ' 2',
-	serial3: gettext('Serial terminal') + ' 3'
+	serial3: gettext('Serial terminal') + ' 3',
+	virtio: 'VirtIO-GPU',
+	none: Proxmox.Utils.noneText
     },
 
     render_kvm_language: function (value) {
diff --git a/www/manager6/qemu/DisplayEdit.js b/www/manager6/qemu/DisplayEdit.js
index c31c69ad..e5af00aa 100644
--- a/www/manager6/qemu/DisplayEdit.js
+++ b/www/manager6/qemu/DisplayEdit.js
@@ -55,6 +55,7 @@ Ext.define('PVE.qemu.DisplayInputPanel', {
 		    case "vmware":
 			emptyText = "16";
 			break;
+		    case "none":
 		    case "serial0":
 		    case "serial1":
 		    case "serial2":
-- 
2.11.0





More information about the pve-devel mailing list