From 84baca8a4c78a3ec0dbab6c4ccb51e06c6c47c63 Mon Sep 17 00:00:00 2001 From: Lukas Wagner Date: Thu, 18 Apr 2024 12:17:05 +0200 Subject: [PATCH] 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 Tested-by: Gabriel Goller --- www/config/GCView.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/config/GCView.js b/www/config/GCView.js index 75bf60a45..852dca5dd 100644 --- a/www/config/GCView.js +++ b/www/config/GCView.js @@ -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,