1
0

Merge branch 'main' into feature/date-math

# Conflicts:
#	src/views/tasks/ShowTasks.vue
This commit is contained in:
kolaente
2022-02-26 13:30:07 +01:00
29 changed files with 1182 additions and 660 deletions

View File

@ -299,6 +299,7 @@ export default defineComponent({
break
}
}
// FIXME: Use computed
sortTasks(this.tasks)
},

View File

@ -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() {

View File

@ -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)
},
},