From 6a20762d99fceceef0cd549eb94e1c6fd02192a5 Mon Sep 17 00:00:00 2001 From: Stefan Lendl Date: Thu, 18 Apr 2024 12:17:03 +0200 Subject: [PATCH] ui: show removed and pending data of last run in bytes Show the removed and pending data of the last run formatted with Proxmox.Utils.format_size for better readability identically to data display in the overview tab. Signed-off-by: Stefan Lendl Tested-by: Gabriel Goller Reviewd-by: Gabriel Goller Reviewed-by: Lukas Wagner Suggested-by: Lukas Wagner --- www/config/GCView.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/www/config/GCView.js b/www/config/GCView.js index 63e84111..6e1a6d06 100644 --- a/www/config/GCView.js +++ b/www/config/GCView.js @@ -1,7 +1,7 @@ Ext.define('pbs-gc-jobs-status', { extend: 'Ext.data.Model', fields: [ - 'store', 'last-run-upid', 'removed-chunks', 'pending-chunks', 'schedule', + 'store', 'last-run-upid', 'removed-bytes', 'pending-bytes', 'schedule', 'next-run', 'last-run-endtime', 'last-run-state', { name: 'duration', @@ -203,6 +203,20 @@ Ext.define('PBS.config.GCJobView', { width: 150, sortable: true, }, + { + header: gettext('Removed Data'), + dataIndex: 'removed-bytes', + renderer: (value) => value !== undefined ? + Proxmox.Utils.format_size(value, true) : "-", + sortable: false, + }, + { + header: gettext('Pending Data'), + dataIndex: 'pending-bytes', + renderer: (value) => value !== undefined ? + Proxmox.Utils.format_size(value, true) : "-", + sortable: false, + }, ], initComponent: function() {