This commit is contained in:
Matúš B committed 2023-06-26 14:50:10 +02:00
1 parent b25767166d
commit cddf44e158
2 files changed
+8 -4

No files matched your search

@@ -112,11 +112,14 @@ export default {
if (!subtask?.is_finished) { subtask.is_finished = 0 }
subtask.timeblocks.push({
end: tmUtils.formatDateTimeForBackend(end),
id: null,
start: tmUtils.formatDateTimeForBackend(start),
end: tmUtils.formatDateTimeForBackend(end)
is_finished: 0,
start: tmUtils.formatDateTimeForBackend(start)
})
subtask.deadline = tmUtils.formatDateTimeForBackend(subtask.deadline)
if (!subtask.id) {
this.$emit('update-unfinished-subtask', subtask)
this.closeModal()
@@ -175,6 +178,7 @@ export default {
this.closeModal()
this.$events.emit('on-subtask-edited', subtask)
} catch (error) {
console.error(error)
this.$toast.error(error.message || error)
}
},