[pve-devel] [PATCH manager] ui: Utils: remove unnecessary render_kvm_vga_driver

Dominik Csapak d.csapak at proxmox.com
Wed Mar 9 15:09:14 CET 2022


the 'value' here is already the rendered text, passing it through
render again does not make sense

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/Utils.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js
index aafe359a..d6aeaf31 100644
--- a/www/manager6/Utils.js
+++ b/www/manager6/Utils.js
@@ -653,9 +653,9 @@ Ext.define('PVE.Utils', {
     },
 
     kvm_vga_driver_array: function() {
-	var data = [['__default__', PVE.Utils.render_kvm_vga_driver('')]];
+	var data = [['__default__', Proxmox.Utils.defaultText]];
 	Ext.Object.each(PVE.Utils.kvm_vga_drivers, function(key, value) {
-	    data.push([key, PVE.Utils.render_kvm_vga_driver(value)]);
+	    data.push([key, value]);
 	});
 
 	return data;
-- 
2.30.2






More information about the pve-devel mailing list