ui: gcview: fix eslint warnings

The ternary ? operator should be at the start of the line if the
the expression is split into multiple lines.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Gabriel Goller <g.goller@proxmox.com>
This commit is contained in:
Lukas Wagner 2024-04-18 12:17:05 +02:00 committed by Fabian Grünbichler
parent b08d340237
commit 84baca8a4c

View File

@ -212,8 +212,8 @@ Ext.define('PBS.config.GCJobView', {
{
header: gettext('Removed Data'),
dataIndex: 'removed-bytes',
renderer: (value) => value !== undefined ?
Proxmox.Utils.format_size(value, true) : "-",
renderer: (value) => value !== undefined
? Proxmox.Utils.format_size(value, true) : "-",
sortable: false,
minWidth: 85,
flex: 1,
@ -221,8 +221,8 @@ Ext.define('PBS.config.GCJobView', {
{
header: gettext('Pending Data'),
dataIndex: 'pending-bytes',
renderer: (value) => value !== undefined ?
Proxmox.Utils.format_size(value, true) : "-",
renderer: (value) => value !== undefined
? Proxmox.Utils.format_size(value, true) : "-",
sortable: false,
minWidth: 80,
flex: 3,