WIP: feat: add default reminder for tasks with a due date #2360

Draft
konrad wants to merge 17 commits from feature/add-default-reminder into main
1 changed files with 3 additions and 0 deletions
Showing only changes of commit 8baafab456 - Show all commits

View File

@ -697,6 +697,9 @@ export default defineComponent({
}
this.task = await this.$store.dispatch('tasks/update', task)
// Activate new fields which may have been set from the api
this.$nextTick(() => this.setActiveFields())
Review

I don't understand why the nextTick is necessary here.

I don't understand why the nextTick is necessary here.
Review

The comment is wrong but the tick is required to make sure the maybe newly set reminder would be shown in the task detail view as well. I'll clarify the comment.

The comment is wrong but the tick is required to make sure the maybe newly set reminder would be shown in the task detail view as well. I'll clarify the comment.
if (!showNotification) {
return