This commit is contained in:
Matej Glasnák committed 2023-04-11 21:58:08 +02:00
1 parent e2a401b938
commit 8ab5e5b34d
2 files changed
+5 -2

No files matched your search

@@ -83,7 +83,8 @@ export default {
_updateFilters() {
this.filter.start = this.date
this.filter.end = addDays(this.date, 1)
this.filter.end = this.date
// this.filter.end = addDays(this.date, 1)
this.selectedDate = String(this.filter.start?.toLocaleDateString('sk-SK'))
this._emitFilterChanged()
@@ -11,6 +11,8 @@ export default {
const blockers = this._generateBlockers()
console.log([...this._generateNonWorking(), ...this._generateTasks(), ...blockers.filter(blocker => blocker.type != 'home_office')])
return {
unscheduledTime: 333,
tasks: [...this._generateNonWorking(), ...this._generateTasks(), ...blockers.filter(blocker => blocker.type != 'home_office')],
@@ -26,7 +28,7 @@ export default {
let workingHours = 0
this.calendarData.tasks.forEach(task => {
if ((task.subtask?.employee.id != employee.id) && (task.blocker?.employee?.id != employee.id))
if ((task.subtask?.employee?.id != employee.id) && (task.blocker?.employee?.id != employee.id))
return
workingHours += timelineUtils._getDifferenceInHours(task.end, task.start)