debug(frontend): log current limit on dropdown toggle

This commit is contained in:
spinline
2026-02-04 00:28:06 +03:00
parent 6657f2c16f
commit 60ff075283

View File

@@ -98,7 +98,10 @@ pub fn StatusBar() -> impl IntoView {
role="button"
class="flex items-center gap-2 cursor-pointer hover:text-primary transition-colors select-none"
title="Global Download Speed - Click to Set Limit"
on:click=move |_| set_down_menu_open.update(|v| *v = !*v)
on:click=move |_| {
logging::log!("Current Down Limit: {:?}", stats.get().down_limit);
set_down_menu_open.update(|v| *v = !*v)
}
>
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
<path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75l3 3m0 0l3-3m-3 3v-7.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />