public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup] fix #5422: ui: make columns in gcview sortable
@ 2024-05-07  8:13 Gabriel Goller
  2024-05-07 14:11 ` Max Carrara
  2024-05-15 12:34 ` Thomas Lamprecht
  0 siblings, 2 replies; 4+ messages in thread
From: Gabriel Goller @ 2024-05-07  8:13 UTC (permalink / raw)
  To: pbs-devel

These columns were not sortable for some reason. Tested it as well and
the sorting seems to work fine.

Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
---
 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 bcea72a5..1c9288e4 100644
--- a/www/config/GCView.js
+++ b/www/config/GCView.js
@@ -164,7 +164,7 @@ Ext.define('PBS.config.GCJobView', {
 	{
 	    header: gettext('Schedule'),
 	    dataIndex: 'schedule',
-	    sortable: false,
+	    sortable: true,
 	    hideable: false,
 	    renderer: (value) => value ? value : Proxmox.Utils.NoneText,
 	    minWidth: 85,
@@ -182,7 +182,7 @@ Ext.define('PBS.config.GCJobView', {
 	    text: gettext('Duration'),
 	    dataIndex: 'duration',
 	    renderer: Proxmox.Utils.render_duration,
-	    sortable: false,
+	    sortable: true,
 	    minWidth: 80,
 	    flex: 1,
 	},
@@ -207,7 +207,7 @@ Ext.define('PBS.config.GCJobView', {
 	    dataIndex: 'removed-bytes',
 	    renderer: (value, meta, record) => record.data.upid !== null
 		? Proxmox.Utils.format_size(value, true) : "-",
-	    sortable: false,
+	    sortable: true,
 	    minWidth: 85,
 	    flex: 1,
 	},
@@ -216,7 +216,7 @@ Ext.define('PBS.config.GCJobView', {
 	    dataIndex: 'pending-bytes',
 	    renderer: (value, meta, record) => record.data.upid !== null
 		? Proxmox.Utils.format_size(value, true) : "-",
-	    sortable: false,
+	    sortable: true,
 	    minWidth: 80,
 	    flex: 3,
 	},
-- 
2.43.0



_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-05-16  9:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-07  8:13 [pbs-devel] [PATCH proxmox-backup] fix #5422: ui: make columns in gcview sortable Gabriel Goller
2024-05-07 14:11 ` Max Carrara
2024-05-15 12:34 ` Thomas Lamprecht
2024-05-16  9:05   ` Gabriel Goller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal