forked from Mirrors/elk
fix: current nav side on pwa update (#823)
This commit is contained in:
parent
37fa2b9117
commit
18056038c7
1 changed files with 5 additions and 7 deletions
|
@ -30,13 +30,11 @@ useCommand({
|
||||||
|
|
||||||
let activeClass = $ref('text-primary')
|
let activeClass = $ref('text-primary')
|
||||||
onMastoInit(async () => {
|
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
|
||||||
// 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
|
||||||
// we don't have currentServer defined until later
|
activeClass = ''
|
||||||
activeClass = ''
|
await nextTick()
|
||||||
await nextTick()
|
activeClass = 'text-primary'
|
||||||
activeClass = 'text-primary'
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
// Optimize rendering for the common case of being logged in, only show visual feedback for disabled user-only items
|
// Optimize rendering for the common case of being logged in, only show visual feedback for disabled user-only items
|
||||||
|
|
Loading…
Reference in a new issue