utils: render default value correctly

This commit is contained in:
Matthias Heiserer 2022-02-10 12:57:38 +01:00 committed by Thomas Lamprecht
parent 0b73467346
commit e06715d2e5

View File

@ -90,7 +90,7 @@ utilities: {
},
render_language: function(value) {
if (!value) {
if (!value || value === '__default__') {
return Proxmox.Utils.defaultText + ' (English)';
}
let text = Proxmox.Utils.language_map[value];