mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
[timeline] non working hours - odstraneny D&D
This commit is contained in:
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">
|
<div class="event-initials d-flex justify-center align-center">
|
||||||
<small>{{ getUserInitials(event) }}</small>
|
<small>{{ getUserInitials(event) }}</small>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -200,6 +200,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
taskClicked(task) {
|
taskClicked(task) {
|
||||||
|
if (task.nonWorking) return
|
||||||
console.log("task", task)
|
console.log("task", task)
|
||||||
if (task.end.getTime() - task.start.getTime() <= 3600000) {
|
if (task.end.getTime() - task.start.getTime() <= 3600000) {
|
||||||
console.log("ShortTask")
|
console.log("ShortTask")
|
||||||
|
|||||||
@@ -109,14 +109,16 @@ export default {
|
|||||||
start: setSeconds(setMinutes(setHours(date, start1.hour), start1.minutes), start1.seconds),
|
start: setSeconds(setMinutes(setHours(date, start1.hour), start1.minutes), start1.seconds),
|
||||||
end: setSeconds(setMinutes(setHours(date, end1.hour), end1.minutes), end1.seconds),
|
end: setSeconds(setMinutes(setHours(date, end1.hour), end1.minutes), end1.seconds),
|
||||||
nonWorking: true,
|
nonWorking: true,
|
||||||
split: i + 1
|
split: i + 1,
|
||||||
|
draggable: false
|
||||||
})
|
})
|
||||||
nonWorkingHours.push({
|
nonWorkingHours.push({
|
||||||
title: "Non working hours",
|
title: "Non working hours",
|
||||||
start: setSeconds(setMinutes(setHours(date, start2.hour), start2.minutes), start2.seconds),
|
start: setSeconds(setMinutes(setHours(date, start2.hour), start2.minutes), start2.seconds),
|
||||||
end: setSeconds(setMinutes(setHours(date, end2.hour), end2.minutes), end2.seconds),
|
end: setSeconds(setMinutes(setHours(date, end2.hour), end2.minutes), end2.seconds),
|
||||||
nonWorking: true,
|
nonWorking: true,
|
||||||
split: i + 1
|
split: i + 1,
|
||||||
|
draggable: false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user