From a8e22a83ab73d783329b95033f45669cd8ecc49f Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 26 Apr 2022 09:34:27 +0200 Subject: [PATCH] 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 --- 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.39.2