forked from vikunja/frontend
Compare commits
1 Commits
main
...
fix/flatpi
Author | SHA1 | Date |
---|---|---|
kolaente | 9af46a0154 |
|
@ -128,10 +128,6 @@ export default {
|
|||
date: null,
|
||||
show: false,
|
||||
changed: false,
|
||||
|
||||
// Since flatpickr dates are strings, we need to convert them to native date objects.
|
||||
// To make that work, we need a separate variable since flatpickr does not have a change event.
|
||||
flatPickrDate: null,
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
@ -164,10 +160,6 @@ export default {
|
|||
handler: 'setDateValue',
|
||||
immediate: true,
|
||||
},
|
||||
flatPickrDate(newVal) {
|
||||
this.date = createDateFromString(newVal)
|
||||
this.updateData()
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
flatPickerConfig() {
|
||||
|
@ -183,6 +175,17 @@ export default {
|
|||
},
|
||||
}
|
||||
},
|
||||
// Since flatpickr dates are strings, we need to convert them to native date objects.
|
||||
// To make that work, we need a separate variable since flatpickr does not have a change event.
|
||||
flatPickrDate: {
|
||||
set(newValue) {
|
||||
this.date = createDateFromString(newValue)
|
||||
this.updateData()
|
||||
},
|
||||
get() {
|
||||
return format(this.date, 'yyy-LL-dd H:mm')
|
||||
},
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
setDateValue(newVal) {
|
||||
|
|
Loading…
Reference in New Issue