fix(web): replies/context buttons now update

This commit is contained in:
əlemi 2024-12-27 03:04:10 +01:00
parent c917d13a49
commit 9a4d23de08
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -48,8 +48,8 @@ pub fn ObjectView() -> impl IntoView {
}} }}
<p> <p>
<span class:tab-active=move || matches!(matched_route.get(), FeedRoute::Context)><a class="clean" href=format!("/web/objects/{}", id.get())><span class="emoji ml-2">"🕸️ "</span>"context"</a></span> <span class:tab-active=move || matches!(matched_route.get(), FeedRoute::Context)><a class="clean" href=move || format!("/web/objects/{}", id.get())><span class="emoji ml-2">"🕸️ "</span>"context"</a></span>
<span class:tab-active=move || matches!(matched_route.get(), FeedRoute::Replies)><a class="clean" href=format!("/web/objects/{}/replies", id.get())><span class="emoji ml-2">"📫 "</span>"replies"</a></span> <span class:tab-active=move || matches!(matched_route.get(), FeedRoute::Replies)><a class="clean" href=move || format!("/web/objects/{}/replies", id.get())><span class="emoji ml-2">"📫 "</span>"replies"</a></span>
{move || if auth.present() { {move || if auth.present() {
if loading.get() { if loading.get() {
Some(view! { Some(view! {