diff --git a/frontend/src/components/torrent/table.rs b/frontend/src/components/torrent/table.rs index d8083c9..6e6ea7d 100644 --- a/frontend/src/components/torrent/table.rs +++ b/frontend/src/components/torrent/table.rs @@ -3,7 +3,7 @@ use leptos::logging; use leptos::html; use leptos::task::spawn_local; use leptos_use::{on_click_outside, use_timeout_fn}; -use crate::store::{get_action_messages, show_toast_with_signal, FilterStatus, TorrentStore}; +use crate::store::{get_action_messages, show_toast_with_signal, FilterStatus}; use crate::api; use shared::{NotificationLevel, Torrent}; use std::collections::HashMap; @@ -192,7 +192,7 @@ pub fn TorrentTable() -> impl IntoView { } } else { view! { "▲" } - .into_view() + .into_any() } }; @@ -382,8 +382,8 @@ pub fn TorrentTable() -> impl IntoView { visible=true position=menu_position.get() torrent_hash=selected_hash.get().unwrap_or_default() - on_close=Callback::from(move |()| set_menu_visible.set(false)) - on_action=Callback::from(move |args| on_action(args)) + on_close=Callback::new(move |()| set_menu_visible.set(false)) + on_action=Callback::new(move |args| on_action(args)) /> @@ -449,7 +449,7 @@ fn TorrentRow( } > - {t.name} + {t.name.clone()} {format_bytes(t.size)} @@ -614,4 +614,4 @@ fn TorrentCard( } } -} +} \ No newline at end of file diff --git a/frontend/src/utils/notification.rs b/frontend/src/utils/notification.rs index 572de82..ae05d9d 100644 --- a/frontend/src/utils/notification.rs +++ b/frontend/src/utils/notification.rs @@ -1,6 +1,7 @@ use wasm_bindgen::prelude::*; use web_sys::{Notification, NotificationOptions}; -use leptos::*; +use leptos::prelude::*; +use reactive_graph::traits::Get; // Signal::get() için gerekli use leptos_use::{use_web_notification, UseWebNotificationReturn, NotificationPermission}; /// Request browser notification permission from user