From c176511d9724785bf0caeeba245c20f1e655e8f8 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Wed, 18 Mar 2026 14:13:12 +0100 Subject: [PATCH] feat(ui) : add app title with swap button in top nav bar Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/components/ui/AppTopNav.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/frontend/components/ui/AppTopNav.vue b/frontend/components/ui/AppTopNav.vue index fd8cf32..91a662c 100644 --- a/frontend/components/ui/AppTopNav.vue +++ b/frontend/components/ui/AppTopNav.vue @@ -7,6 +7,17 @@ > +
@@ -45,6 +56,13 @@ defineProps<{ const auth = useAuthStore() const ui = useUiStore() +const appTitle = ref(localStorage.getItem('appTitle') || 'NeauTime') + +function toggleTitle() { + appTitle.value = appTitle.value === 'NeauTime' ? 'Lesstime' : 'NeauTime' + localStorage.setItem('appTitle', appTitle.value) +} + async function handleLogout() { await auth.logout() await navigateTo('/login')