This commit is contained in:
romankko2 committed 2024-02-19 11:27:39 +01:00
commit ed6ba59bb5
3 files changed
+6 -3

No files matched your search

+5 -2
View File
@@ -264,10 +264,13 @@ export default {
const time = moment(dateFrom).format('HH:mm') const time = moment(dateFrom).format('HH:mm')
const isTeamCalendar = this.$route.name === 'Dashboard - Teams'
const employee = isTeamCalendar ? split.employee_id : this.user.id
this.$events.emit('show-menu-modal', { this.$events.emit('show-menu-modal', {
time: time, time,
date: tmUtils.formatDateTimeForBackend(dateFrom), date: tmUtils.formatDateTimeForBackend(dateFrom),
employee: this.user.id employee
}) })
setTimeout(() => { setTimeout(() => {
@@ -54,6 +54,7 @@ export default {
}, },
createTask() { createTask() {
console.log(this.localData.date, this.localData.time, this.localData.employees)
this.$events.emit('show-subtask-modal', { this.$events.emit('show-subtask-modal', {
subtask: { subtask: {
deadline: this.localData.date, deadline: this.localData.date,
@@ -241,7 +241,6 @@ export default {
}, },
async showModal({ subtask, editMode = false, mastertask = {} }) { async showModal({ subtask, editMode = false, mastertask = {} }) {
console.log(subtask)
this.isSaving = false this.isSaving = false
this.subtask = null this.subtask = null
this.visible = true this.visible = true