[timeline] non working hours - odstraneny D&D

This commit is contained in:
Filip Kaluža committed 2023-01-10 09:56:08 +01:00
1 parent 755576db5e
commit f5457f3ee5
2 files changed
+6 -3

No files matched your search

@@ -58,7 +58,7 @@
<div class="event-initials d-flex justify-center align-center">
<small>{{ getUserInitials(event) }}</small>
</div>
<small class="event-initials-date">{{ new Date(event.starts_at).toLocaleDateString('sk-SK') }}</small>mall> -->
<small class="event-initials-date">{{ new Date(event.starts_at).toLocaleDateString('sk-SK') }}</small>
</div>
</div>
@@ -200,6 +200,7 @@ export default {
},
taskClicked(task) {
if (task.nonWorking) return
console.log("task", task)
if (task.end.getTime() - task.start.getTime() <= 3600000) {
console.log("ShortTask")
+4 -2
View File
@@ -109,14 +109,16 @@ export default {
start: setSeconds(setMinutes(setHours(date, start1.hour), start1.minutes), start1.seconds),
end: setSeconds(setMinutes(setHours(date, end1.hour), end1.minutes), end1.seconds),
nonWorking: true,
split: i + 1
split: i + 1,
draggable: false
})
nonWorkingHours.push({
title: "Non working hours",
start: setSeconds(setMinutes(setHours(date, start2.hour), start2.minutes), start2.seconds),
end: setSeconds(setMinutes(setHours(date, end2.hour), end2.minutes), end2.seconds),
nonWorking: true,
split: i + 1
split: i + 1,
draggable: false
})
}