[auth] Added auth guard

This commit is contained in:
Matej Glasnák committed 2023-02-22 19:09:12 +01:00
1 parent ef6369714b
commit 1e86dbbbb3
5 files changed
+44 -21

No files matched your search

+1 -2
View File
@@ -37,7 +37,6 @@ export default {
this.filter.team.employees.forEach((employee, index) => {
let workingHours = 0
const capacityPerDay = employee.work_end - employee.work_start
this.timelineData.tasks.forEach(task => {
if (task?.subtask?.employee_id == employee.id)
@@ -49,7 +48,7 @@ export default {
name: employee.name,
fullname: `${employee.name} ${employee.surname}`,
initials: employee.name.charAt(0).toUpperCase() + employee.surname.charAt(0).toUpperCase(),
unscheduledTime: capacityPerDay - workingHours
unscheduledTime: workingHours
})
})