mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 22:39:34 +00:00
[task overview] task overlap
This commit is contained in:
1 parent
0c394fb513
commit
c1296abbdc
5 files changed
+35
-28
No files matched your search
@@ -49,7 +49,6 @@ export default {
|
||||
getWeek() {
|
||||
this.firstDay = addDays(startOfWeek(this.date), 1)
|
||||
this.lastDay = addDays(endOfWeek(this.date), 1)
|
||||
console.log()
|
||||
|
||||
this.$emit('weekChange', {firstDay: this.firstDay, lastDay: this.lastDay})
|
||||
this.selectedDate = String(this.firstDay.toLocaleDateString('sk-SK') + ' - ' + this.lastDay.toLocaleDateString('sk-SK'))
|
||||
|
||||
@@ -252,8 +252,9 @@ export default {
|
||||
img
|
||||
width: 18px
|
||||
|
||||
&:hover
|
||||
z-index: 10
|
||||
// &:hover,
|
||||
&:focus
|
||||
z-index: 100 !important
|
||||
|
||||
&.red
|
||||
background: #FFC9C9 !important
|
||||
|
||||
@@ -75,17 +75,18 @@ export default {
|
||||
},
|
||||
|
||||
async onEventMoved(event) {
|
||||
try {
|
||||
await this.$axios.post_auth_data(`v1/overview/tasks/${event.event.id}`, {start: event.event.start, end: event.event.end})
|
||||
} catch(error) {
|
||||
this.triggerToast("Nepodarilo sa presunut ulohu!")
|
||||
this.timelineData.dates.filter(e => {
|
||||
if (e.id == event.event.id) {
|
||||
e.start = new Date(event.originalEvent.start)
|
||||
e.end = new Date(event.originalEvent.end)
|
||||
}
|
||||
})
|
||||
}
|
||||
console.log(event)
|
||||
// try {
|
||||
// await this.$axios.post_auth_data(`v1/overview/tasks/${event.event.id}`, {start: event.event.start, end: event.event.end})
|
||||
// } catch(error) {
|
||||
// this.triggerToast("Nepodarilo sa presunut ulohu!")
|
||||
// this.timelineData.dates.filter(e => {
|
||||
// if (e.id == event.event.id) {
|
||||
// e.start = new Date(event.originalEvent.start)
|
||||
// e.end = new Date(event.originalEvent.end)
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user