mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 08:32:23 +01:00
fix: reset due date on recurring selection only if coming from multidate selection
This commit is contained in:
parent
eb3935d2e6
commit
f8b4b7c764
1 changed files with 5 additions and 1 deletions
|
@ -210,7 +210,11 @@ export default {
|
|||
if (what === 'type') {
|
||||
if (typeof value === 'undefined') { this.type = 'normal' }
|
||||
if (value === 'recurrent') {
|
||||
this.$emit('input', { ...this.value, due: null, dueHour: null, recurrent: { frequency: '1w' }, multidate: false })
|
||||
if (this.value.multidate && this.value.due) {
|
||||
this.$emit('input', { ...this.value, due: this.value.from, recurrent: { frequency: '1w' }, multidate: false })
|
||||
} else {
|
||||
this.$emit('input', { ...this.value, recurrent: { frequency: '1w' }, multidate: false })
|
||||
}
|
||||
} else if (value === 'multidate') {
|
||||
this.$emit('input', { ...this.value, recurrent: null, multidate: true })
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue