mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
[Teams] Calendar fix
This commit is contained in:
1 parent
e4abc1fc36
commit
c3e7e70da6
6 files changed
+42
-38
No files matched your search
@@ -47,12 +47,12 @@ export default {
|
||||
workingHours[task.split] += timelineUtils._getDifferenceInHours(task.end, task.start)
|
||||
})
|
||||
|
||||
for (let i = 1; i <= 7; i++) {
|
||||
for (let i = 0; i < 7; i++) {
|
||||
days.push({
|
||||
id: i ,
|
||||
name: this.filter.employee.name + " " + this.filter.employee.surname,
|
||||
id: i + 1,
|
||||
fullname: `${this.filter.employee.name} ${this.filter.employee.surname}`,
|
||||
initials: this.filter.employee.name.charAt(0).toUpperCase() + this.filter.employee.surname.charAt(0).toUpperCase(),
|
||||
unscheduledTime: capacityPerDay - workingHours[i],
|
||||
unscheduledTime: capacityPerDay - workingHours[i + 1],
|
||||
date: addDays(this.filter.start, i),
|
||||
isWeekend: timelineUtils.isWeekend(addDays(this.filter.start, i))
|
||||
})
|
||||
@@ -108,6 +108,7 @@ export default {
|
||||
try {
|
||||
const { subtasks } = await this.$axios.get_auth(`v1/subtasks?${queryParameters}`)
|
||||
this.config.scrollHour = this.filter.employee.work_start - 1
|
||||
this.config.date = this.filter.start
|
||||
this.subtasks = subtasks
|
||||
} catch (error) {
|
||||
this.$toast.error('Nepodarilo sa nacitat data!')
|
||||
|
||||
Reference in new issue
Block a user