[Calendar] WIP event drag

This commit is contained in:
Matej Glasnák committed 2022-12-14 13:33:35 +01:00
1 parent 2c51813db4
commit 1744a228a0
3 files changed
+444 -355

No files matched your search

+4 -4
View File
@@ -5,9 +5,9 @@
<Z-timeline :calData="timelineData" :calConfig="config" @eventMoved="onEventMoved" />
</W-loadable>
<v-snackbar
v-model="errorToast"
:timeout="2000"
<v-snackbar
v-model="errorToast"
:timeout="2000"
color="red"
:rounded="true"
>
@@ -80,7 +80,7 @@ export default {
},
async onEventMoved(event) {
console.log(event)
console.log(`ID from dragStop: ${event.event.id}`)
// try {
// await this.$axios.post_auth_data(`v1/overview/tasks/${event.event.id}`, {start: event.event.start, end: event.event.end})
// } catch(error) {