From 18056038c7886159d9cd7523a2c422e88806ae6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20S=C3=A1nchez?= Date: Fri, 6 Jan 2023 13:47:49 +0100 Subject: [PATCH] fix: current nav side on pwa update (#823) --- components/nav/NavSideItem.vue | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/components/nav/NavSideItem.vue b/components/nav/NavSideItem.vue index 82cf59c3..aa9c9243 100644 --- a/components/nav/NavSideItem.vue +++ b/components/nav/NavSideItem.vue @@ -30,13 +30,11 @@ useCommand({ let activeClass = $ref('text-primary') onMastoInit(async () => { - if (!props.userOnly) { - // TODO: force NuxtLink to reevaluate, we now we are in this route though, so we should force it to active - // we don't have currentServer defined until later - activeClass = '' - await nextTick() - activeClass = 'text-primary' - } + // TODO: force NuxtLink to reevaluate, we now we are in this route though, so we should force it to active + // we don't have currentServer defined until later + activeClass = '' + await nextTick() + activeClass = 'text-primary' }) // Optimize rendering for the common case of being logged in, only show visual feedback for disabled user-only items