ui: backup job detail view: simplify node renderer

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-09-08 16:09:19 +02:00
parent 1226f0baa8
commit 3f85cce836

View File

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