fix(frontend): leptos 0.8 migration fixes - Callback::run, StoredValue::new_local, traits
Some checks failed
Build MIPS Binary / build (push) Failing after 1m22s

This commit is contained in:
spinline
2026-02-09 20:39:23 +03:00
parent e1e8a89579
commit 95a0d59cc4
5 changed files with 15 additions and 13 deletions

View File

@@ -14,15 +14,15 @@ pub fn ContextMenu(
) -> impl IntoView {
let container_ref = create_node_ref::<html::Div>();
let _ = on_click_outside(container_ref, move |_| on_close.call(()));
let _ = on_click_outside(container_ref, move |_| on_close.run(()));
let handle_action = move |action: &str| {
let hash = torrent_hash.clone();
let action_str = action.to_string();
logging::log!("ContextMenu: Action '{}' for hash '{}'", action_str, hash);
on_action.call((action_str, hash)); // Delegate FIRST
on_close.call(()); // Close menu AFTER
on_action.run((action_str, hash)); // Delegate FIRST
on_close.run(()); // Close menu AFTER
};
if !visible {