mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 22:39:34 +00:00
[team calendar] priradenie vsetkych celnov teamu z kalendaru
This commit is contained in:
1 parent
158be83345
commit
89df5d7a11
4 files changed
+10
-6
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user