From c13382401964c1e8579080bf66b27ae869f09fed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Glasn=C3=A1k?= Date: Mon, 7 Jul 2025 08:14:30 +0200 Subject: [PATCH] fix(office365) fixed displaying office 365 tasks on teams overview screen --- .../tm@dashboard/teams/_mixins/TeamsCalendar.mixin.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/plugins/tm@dashboard/teams/_mixins/TeamsCalendar.mixin.ts b/app/src/plugins/tm@dashboard/teams/_mixins/TeamsCalendar.mixin.ts index 785c65c..93ee37b 100644 --- a/app/src/plugins/tm@dashboard/teams/_mixins/TeamsCalendar.mixin.ts +++ b/app/src/plugins/tm@dashboard/teams/_mixins/TeamsCalendar.mixin.ts @@ -154,6 +154,11 @@ export default { subtask.timeblocks.forEach(timeblock => { const formattedDate = moment(timeblock.start).format('DD-MM-YYYY') + let type = 'subtask'; + + if (subtask.type == 'office365') + type = 'office365' + if (formattedDate == calendarDate) { tasks.push({ id: subtask.id, @@ -167,7 +172,7 @@ export default { initials: employee?.name?.charAt(0)?.toUpperCase() + employee?.surname?.charAt(0)?.toUpperCase(), split: split, project_code: subtask.project_code, - type: 'subtask', + type, subtask, _timeblock_id: timeblock.id, _timeblock_is_finished: timeblock.is_finished,