fix: no connection badge before login

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Fabian @ Blax Software 2026-10-28 19:27:17 +01:00
parent ec421f2537
commit 938e7429dc
1 changed files with 2 additions and 1 deletions

View File

@ -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>