[pve-devel] [PATCH manager] ui: dont show '__default__' in renderer
Dominik Csapak
d.csapak at proxmox.com
Tue Apr 26 09:34:27 CEST 2022
with the recent rework of the render/maps/arrays, we now
show 'Default (__default__)'. Since '__default__' is only an internal
value in the gui, don't expose it by explicitely checking for it
in the other render functions it works already because we either construct
the text differently (console_map) or we check the result from
parsing (vga_driver)
Signed-off-by: Dominik Csapak <d.csapak 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 f13a7dec..4611ff0f 100644
--- a/www/manager6/Utils.js
+++ b/www/manager6/Utils.js
@@ -599,7 +599,7 @@ Ext.define('PVE.Utils', {
},
render_kvm_language: function(value) {
- if (!value) {
+ if (!value || value === '__default__') {
return Proxmox.Utils.defaultText;
}
let text = PVE.Utils.kvm_keymaps[value];
--
2.30.2
More information about the pve-devel
mailing list