From f3985b741bf7f367cad010ca5968b85e993c6550 Mon Sep 17 00:00:00 2001 From: romankko2 Date: Mon, 25 Sep 2023 12:46:10 +0200 Subject: [PATCH] [mastertask] edit fix --- app/src/plugins/app@vendor/vue-cal/cell.vue | 2 +- .../teams/_mixins/TeamsCalendar.mixin.ts | 1 + .../master-task/z-master-task-modal.vue | 17 +++++++++++++---- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/app/src/plugins/app@vendor/vue-cal/cell.vue b/app/src/plugins/app@vendor/vue-cal/cell.vue index 97eeb57..20ce66b 100644 --- a/app/src/plugins/app@vendor/vue-cal/cell.vue +++ b/app/src/plugins/app@vendor/vue-cal/cell.vue @@ -257,7 +257,7 @@ export default { onCellClick(DOMEvent, split) { if (DOMEvent.offsetY > 950 && DOMEvent.offsetY < 1700) { - const dateFrom = split.date + const dateFrom = split.date dateFrom.setHours(Math.floor(DOMEvent.offsetY / 100), 0, 0, 0) const dateTo = new Date(dateFrom) dateTo.setHours(dateFrom.getHours() + 1) 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 0616ca0..94f68ad 100644 --- a/app/src/plugins/tm@dashboard/teams/_mixins/TeamsCalendar.mixin.ts +++ b/app/src/plugins/tm@dashboard/teams/_mixins/TeamsCalendar.mixin.ts @@ -57,6 +57,7 @@ export default { id: index + 1, name: employee.name, employee_id: employee.id, + // date: this.filter.start, fullname: `${employee.name} ${employee.surname}`, initials: employee.name.charAt(0).toUpperCase() + employee.surname.charAt(0).toUpperCase(), unscheduledTime: unscheduledTime > 0 ? (unscheduledTime / 60).toFixed(1) : 0, diff --git a/app/src/plugins/tm@modal/master-task/z-master-task-modal.vue b/app/src/plugins/tm@modal/master-task/z-master-task-modal.vue index 3356f41..6c2f7fd 100644 --- a/app/src/plugins/tm@modal/master-task/z-master-task-modal.vue +++ b/app/src/plugins/tm@modal/master-task/z-master-task-modal.vue @@ -23,7 +23,7 @@ - +