]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: backup job detail view: simplify node renderer
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 8 Sep 2021 14:09:19 +0000 (16:09 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 8 Sep 2021 14:09:19 +0000 (16:09 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/dc/Backup.js

index 61417b6e05e9b3b54dd5acc3b87757425ecebc6e..9c903e6df632f51df338afe4a8fb441fe94d09bd 100644 (file)
@@ -606,13 +606,7 @@ Ext.define('PVE.dc.BackupInfo', {
            xtype: 'displayfield',
            name: 'node',
            fieldLabel: gettext('Node'),
-           renderer: function(value) {
-               if (!value) {
-                   return '-- ' + gettext('All') + ' --';
-               } else {
-                   return value;
-               }
-           },
+           renderer: value => value || `-- ${gettext('All')} --`,
        },
        {
            xtype: 'displayfield',