[Blockers] Added blockers in tasks view

This commit is contained in:
Matej Glasnák committed 2023-03-21 20:41:10 +01:00
1 parent 04c42c2762
commit 6654c32da7
9 files changed
+260 -97

No files matched your search

+3 -11
View File
@@ -57,15 +57,7 @@ export default {
timelineData() {
if (!this.subtasks)
return
// let unscheduledTime = 0
// const tasks = [...this._generateNonWorking(), ...this._generateTasks()]
// tasks.forEach(task => {
// if (!task.nonWorking)
// workingHours += timelineUtils._getDifferenceInHours(task.end, task.start)
// })
return
return {
unscheduledTime: 333,
@@ -147,7 +139,7 @@ export default {
start: setMinutes(setHours(date, 0), 0),
end: setMinutes(setHours(date, employee.work_start), 0),
split: index + 1,
nonWorking: true,
type: 'non-working-hours',
draggable: false
})
@@ -156,7 +148,7 @@ export default {
start: setMinutes(setHours(date, employee.work_end), 0),
end: setMinutes(setHours(date, 23), 59),
split: index + 1,
nonWorking: true,
type: 'non-working-hours',
draggable: false
})
})