darabolás előtti állapot

This commit is contained in:
Roo
2026-06-18 07:58:30 +00:00
parent 404d04c56b
commit 611307a24b
8 changed files with 120 additions and 40 deletions

View File

@@ -7,10 +7,7 @@
</template>
<template #center>
<!-- Center label: {firstName}_garage -->
<span class="text-sm font-semibold text-white/70 tracking-wide">
{{ centerLabel }}
</span>
<!-- Center slot: kept empty for breathing space -->
</template>
<template #right>
@@ -117,7 +114,7 @@
</template>
<script setup lang="ts">
import { ref, computed, onMounted, onUnmounted } from 'vue'
import { ref, onMounted, onUnmounted } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import { useI18n } from 'vue-i18n'
import { useAuthStore } from '../stores/auth'
@@ -135,14 +132,6 @@ const authStore = useAuthStore()
// ── Hamburger Menu State ──────────────────────────────────────────
const isHamburgerOpen = ref(false)
// ── Center label: shows "{firstName}_garage" ───────────────────────
const centerLabel = computed(() => {
const firstName = authStore.user?.first_name ||
authStore.user?.email?.split('@')[0] ||
t('header.user')
return t('header.personalGarageLabel', { name: firstName })
})
// ── Navigate to dashboard with card query param ────────────────────
function navigateToCard(cardId: string) {
isHamburgerOpen.value = false