[pve-devel] [PATCH manager] gui: VM Create wizard - display default scsi controller correctly

Daniel Tschlatscher d.tschlatscher at proxmox.com
Thu May 12 12:00:04 CEST 2022


Fixed a cosmetic issue where in the VM creation wizard the SCSI
controller would not be displayed correctly if the default value
"Default (LSI 53C895A)" was selected. In this case, "__default__"
would be printed for the user in the next pane.

Signed-off-by: Daniel Tschlatscher <d.tschlatscher at proxmox.com>
---
 www/manager6/Utils.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js
index b4e2df79..8276e95c 100644
--- a/www/manager6/Utils.js
+++ b/www/manager6/Utils.js
@@ -508,7 +508,7 @@ Ext.define('PVE.Utils', {
     render_as_property_string: v => !v ? Proxmox.Utils.defaultText : PVE.Parser.printPropertyString(v),
 
     render_scsihw: function(value) {
-	if (!value) {
+	if (!value || value === '__default__') {
 	    return Proxmox.Utils.defaultText + ' (LSI 53C895A)';
 	} else if (value === 'lsi') {
 	    return 'LSI 53C895A';
-- 
2.30.2





More information about the pve-devel mailing list