update user name display to use attendance store

This commit is contained in:
2025-10-23 19:07:19 +02:00
parent 5d0acb182f
commit 5aeac397a1

View File

@@ -15,7 +15,7 @@
{{ formatHours(Math.abs(props.overtime_hours)) }}
</div>
<div class="user-name">
<h3 class="user-name">Marcin Nowak</h3>
<h3 class="user-name">{{ attendanceStore.employee }}</h3>
<span @click="logoutUser">WYLOGUJ</span>
</div>
</div>
@@ -60,9 +60,11 @@
<script setup>
import { computed } from 'vue'
import { useAuthStore } from '@/stores/authStore'
import { useAttendanceStore } from '@/stores/attendanceStore'
import { useRouter } from 'vue-router'
import MonthMenu from './MonthMenu.vue'
const attendanceStore = useAttendanceStore()
const authStore = useAuthStore()
const router = useRouter()