[team calendar] priradenie vsetkych celnov teamu z kalendaru

This commit is contained in:
JakubPapso committed 2024-02-14 20:55:40 +01:00
1 parent 158be83345
commit 89df5d7a11
4 files changed
+10 -6

No files matched your search

+5 -1
View File
@@ -264,10 +264,13 @@ export default {
const time = moment(dateFrom).format('HH:mm')
const isTeamCalendar = this.$route.name === 'Dashboard - Teams'
const employees = isTeamCalendar ? JSON.parse(JSON.stringify(this.teams.find(team => team.id == localStorage.getItem('selectedTeam')).employees)) : [this.user]
this.$events.emit('show-menu-modal', {
time: time,
date: tmUtils.formatDateTimeForBackend(dateFrom),
employee: this.user.id
employees
})
setTimeout(() => {
@@ -311,6 +314,7 @@ export default {
computed: {
...mapGetters("auth", ["user"]),
...mapGetters('tm', ['teams']),
// Drag & drop module.
dnd () {
return this.modules.dnd