ui: utils: refactor render_as_property_string

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-11-12 18:25:36 +01:00
parent fcb267e361
commit afa725cd9c

View File

@ -505,10 +505,7 @@ Ext.define('PVE.Utils', {
return PVE.Parser.printPropertyString(value);
}
},
render_as_property_string: function(value) {
return !value ? Proxmox.Utils.defaultText
: PVE.Parser.printPropertyString(value);
},
render_as_property_string: v => !v ? Proxmox.Utils.defaultText : PVE.Parser.printPropertyString(v),
render_scsihw: function(value) {
if (!value) {