update user name display to use attendance store
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
{{ formatHours(Math.abs(props.overtime_hours)) }}
|
{{ formatHours(Math.abs(props.overtime_hours)) }}
|
||||||
</div>
|
</div>
|
||||||
<div class="user-name">
|
<div class="user-name">
|
||||||
<h3 class="user-name">Marcin Nowak</h3>
|
<h3 class="user-name">{{ attendanceStore.employee }}</h3>
|
||||||
<span @click="logoutUser">WYLOGUJ</span>
|
<span @click="logoutUser">WYLOGUJ</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -60,9 +60,11 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import { useAuthStore } from '@/stores/authStore'
|
import { useAuthStore } from '@/stores/authStore'
|
||||||
|
import { useAttendanceStore } from '@/stores/attendanceStore'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import MonthMenu from './MonthMenu.vue'
|
import MonthMenu from './MonthMenu.vue'
|
||||||
|
|
||||||
|
const attendanceStore = useAttendanceStore()
|
||||||
const authStore = useAuthStore()
|
const authStore = useAuthStore()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user