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> +