fix(network-detail): wrap disabled attr in braces to fix pagination next button

The view! macro misparses `disabled=move || expr >= other` because >= without
braces is ambiguous — the rest of the expression renders as text content.
Fix: `disabled={move || ...}`.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-16 02:42:29 +02:00
parent c3e2d5dcf6
commit 7274157a80

View File

@@ -122,7 +122,7 @@ pub fn NetworkDetailPage() -> impl IntoView {
)}
</span>
<button
disabled=move || page.get() >= total_pages.get()
disabled={move || page.get() >= total_pages.get()}
on:click=move |_| {
let max = total_pages.get_untracked();
page.update(|p| *p = (*p + 1).min(max));