]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: dont show '__default__' in renderer
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 26 Apr 2022 07:34:27 +0000 (09:34 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 26 Apr 2022 13:31:11 +0000 (15:31 +0200)
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>
www/manager6/Utils.js

index f13a7dece3c98bf0fb7bbb4b5a5adb7f0fd55335..4611ff0fb52ce4541dceaa362e1f20637ddfad5b 100644 (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];