diff --git a/src/frontend/app.rs b/src/frontend/app.rs index 1c4bca7..807c804 100644 --- a/src/frontend/app.rs +++ b/src/frontend/app.rs @@ -35,8 +35,7 @@ pub fn site() -> Resource { } pub fn is_logged_in() -> bool { - //site().with_default(|site| site.my_profile.is_some()) - false + site().with_default(|site| site.my_profile.is_some()) } pub fn is_admin() -> bool { site().with_default(|site| { diff --git a/src/frontend/components/nav.rs b/src/frontend/components/nav.rs index 5fa91e5..6912ef4 100644 --- a/src/frontend/components/nav.rs +++ b/src/frontend/components/nav.rs @@ -50,7 +50,7 @@ pub fn Nav() -> impl IntoView {
  • "Articles"
  • - +
  • "Create Article" @@ -59,12 +59,12 @@ pub fn Nav() -> impl IntoView { "Notifications " - {move || notification_count.get()} + {move || notification_count.get()}
  • -
    +
  • impl IntoView {
  • - + impl IntoView { } - +