mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
prefil date and time [blocker]
This commit is contained in:
1 parent
2d7f29e9f4
commit
19a321baa8
6 files changed
+47
-24
No files matched your search
@@ -261,15 +261,13 @@ export default {
|
||||
const dateTo = new Date(dateFrom)
|
||||
dateTo.setHours(dateFrom.getHours() + 1)
|
||||
|
||||
const splitDate = split.date
|
||||
const time = moment(dateFrom).format('HH:mm')
|
||||
const date = moment(dateFrom).format('DD.MM.yyyy')
|
||||
|
||||
const time = moment(splitDate).format('hh:mm')
|
||||
const date = moment(splitDate).format('YYYY-MM-DD') // dd.MM.yyyy
|
||||
|
||||
console.log(time)
|
||||
console.log(date)
|
||||
|
||||
this.$events.emit('show-menu-modal', {})
|
||||
this.$events.emit('show-menu-modal', {
|
||||
time: time,
|
||||
date: date
|
||||
})
|
||||
|
||||
setTimeout(() => {
|
||||
this.$events.emit('add-timeblock', {
|
||||
|
||||
@@ -157,7 +157,7 @@ export default {
|
||||
},
|
||||
|
||||
onDragStart(e) {
|
||||
if (this.event.type == 'blocker' || this.event.type == 'non-working-hours') return
|
||||
if (this.event.type == 'blocker' || this.event.type == 'non-working-hours') return //|| this.event._timeblock_is_finished || this.event.subtask?.is_finished
|
||||
this.event.draggingStatic = false
|
||||
this.dnd && this.dnd.eventDragStart(e, this.event);
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user