Merge branch 'main' into feature/date-math
# Conflicts: # src/views/tasks/ShowTasks.vue
This commit is contained in:
@ -299,6 +299,7 @@ export default defineComponent({
|
||||
break
|
||||
}
|
||||
}
|
||||
// FIXME: Use computed
|
||||
sortTasks(this.tasks)
|
||||
},
|
||||
|
||||
|
@ -520,6 +520,13 @@ export default {
|
||||
},
|
||||
immediate: true,
|
||||
},
|
||||
// Using a watcher here because the header component handles saving the task with the api but we want to decouple
|
||||
// it from the page title.
|
||||
'task.title': {
|
||||
handler(title) {
|
||||
this.setTitle(title)
|
||||
},
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
currentList() {
|
||||
|
@ -181,7 +181,7 @@ export default {
|
||||
validateField() {
|
||||
// using computed so that debounced function definition stays
|
||||
return useDebounceFn((field) => {
|
||||
this[`${field}Valid`] = this.$refs[field].value !== ''
|
||||
this[`${field}Valid`] = this.$refs[field]?.value !== ''
|
||||
}, 100)
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user