From: Shan Shaji <s.shaji@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [PATCH datacenter-manager] fix: ui: set sort function for datastore comment column
Date: Tue, 1 Dec 2026 15:55:09 +0100 [thread overview]
Message-ID: <20261201145509.114370-1-s.shaji@proxmox.com> (raw)
The datastore content view does not support sorting the tree by the
comment column, unlike PBS. Set a sorter callback to fix it.
Signed-off-by: Shan Shaji <s.shaji@proxmox.com>
---
I'm not sure if disabling sorting by comments was intentional. If it
was, feel free to ignore this.
ui/src/pbs/snapshot_list.rs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ui/src/pbs/snapshot_list.rs b/ui/src/pbs/snapshot_list.rs
index eccca26c..dfd1589a 100644
--- a/ui/src/pbs/snapshot_list.rs
+++ b/ui/src/pbs/snapshot_list.rs
@@ -401,6 +401,9 @@ impl SnapshotListComp {
.into(),
DataTableColumn::new(tr!("Comment"))
.width("minmax(140px, 1fr)")
+ .sorter(|a: &SnapshotTreeEntry, b: &SnapshotTreeEntry| {
+ sort_key(a, a.comment()).cmp(&sort_key(b, b.comment()))
+ })
.render_cell(render_comment)
.into(),
DataTableColumn::new(tr!("Backup Time"))
--
2.47.3
next reply other threads:[~2026-12-01 14:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 14:55 Shan Shaji [this message]
2026-12-01 18:29 ` applied: [PATCH datacenter-manager] fix: ui: set sort function for datastore comment column Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261201145509.114370-1-s.shaji@proxmox.com \
--to=s.shaji@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.