Feat(office365) Finished connection to API

This commit is contained in:
Matej Glasnák committed 2024-11-19 12:06:19 +01:00
1 parent a4941e511f
commit 5bf90cff14
8 files changed
+35 -31

No files matched your search

@@ -49,6 +49,13 @@ export default {
_composeTimelineEvent(subtask, employee, date, timeblock) {
const diffInDays = differenceInCalendarDays(date, new Date(timeblock.start))
// console.log('subtask', subtask.type)
let type = 'subtask'
if (subtask.type == 'office365')
type = 'office365'
return {
id: subtask.id,
start: addDays(new Date(timeblock.start), diffInDays),
@@ -60,12 +67,12 @@ export default {
split: this._getSplitFromDate(date, timeblock.start),
project_code: subtask.project_code,
subtask: subtask,
type: 'subtask',
type,
_timeblock_id: timeblock.id,
_timeblock_is_finished: timeblock.is_finished,
_real_start: new Date(timeblock.start),
_real_end: new Date(timeblock.end),
draggable: false // TODO office365: Disable only for office 365 events
draggable: type !== 'office365'
}
},