Set the end date to the same as the due date if a start date was set but no end date
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
64cbfc113a
commit
2223072881
|
@ -398,6 +398,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
saveTask() {
|
saveTask() {
|
||||||
|
|
||||||
|
// If no end date is being set, but a start date and due date,
|
||||||
|
// use the due date as the end date
|
||||||
|
if (this.task.endDate === null && this.task.startDate !== null && this.task.dueDate !== null) {
|
||||||
|
this.task.endDate = this.task.dueDate
|
||||||
|
}
|
||||||
|
|
||||||
this.taskService.update(this.task)
|
this.taskService.update(this.task)
|
||||||
.then(r => {
|
.then(r => {
|
||||||
this.$set(this, 'task', r)
|
this.$set(this, 'task', r)
|
||||||
|
|
Reference in New Issue
Block a user