update user name display to use attendance store
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user