ui: dont show '__default__' in renderer

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@proxmox.com>
This commit is contained in:
Dominik Csapak 2022-04-26 09:34:27 +02:00 committed by Thomas Lamprecht
parent 04f27b64d9
commit a8e22a83ab

View File

@ -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];