]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/Utils.js
ui: utils: refactor render_as_property_string
[pve-manager.git] / www / manager6 / Utils.js
index d66d0c8607ff616bfb748c73fb561b930035cd2b..dbd0cef86577195726f53678d910340bccd96e67 100644 (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) {