From 88c3cd57c1cf19dad5611f72dca560730cc0d682 Mon Sep 17 00:00:00 2001 From: spinline Date: Thu, 12 Feb 2026 01:16:01 +0300 Subject: [PATCH] feat: stabilize advanced DataTable features and resolve all closure ownership errors --- frontend/src/components/torrent/table.rs | 93 +++++++++++------------- 1 file changed, 43 insertions(+), 50 deletions(-) diff --git a/frontend/src/components/torrent/table.rs b/frontend/src/components/torrent/table.rs index 9b5ae8d..c474867 100644 --- a/frontend/src/components/torrent/table.rs +++ b/frontend/src/components/torrent/table.rs @@ -132,6 +132,8 @@ pub fn TorrentTable() -> impl IntoView { }) }); + let has_selection = Signal::derive(move || selected_count.get() > 0); + let handle_select_all = Callback::new(move |checked: bool| { selected_hashes.update(|selected| { let hashes = filtered_hashes.get_untracked(); @@ -156,7 +158,7 @@ pub fn TorrentTable() -> impl IntoView { let sort_icon = move |col: SortColumn| { let is_active = sort_col.0.get() == col; let class = if is_active { "size-3 text-primary" } else { "size-3 opacity-30 group-hover:opacity-100 transition-opacity" }; - view! { } + view! { }.into_any() }; let bulk_action = move |action: &'static str| { @@ -216,7 +218,7 @@ pub fn TorrentTable() -> impl IntoView {
- 0> +