fix: no connection badge before login
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ec421f2537
commit
938e7429dc
|
|
@ -40,7 +40,8 @@ useHead({ title: () => t('app.title') })
|
|||
</nav>
|
||||
|
||||
<div class="ml-auto flex min-w-0 items-center gap-2">
|
||||
<span class="badge" :class="connection.tone">
|
||||
<!-- The socket opens with the first request after login, so before that there is nothing to show. -->
|
||||
<span v-if="user" class="badge" :class="connection.tone">
|
||||
<span class="size-1.5 rounded-full bg-current" />
|
||||
{{ connection.text }}
|
||||
</span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue