feat: add date math for filters #1342
|
@ -212,8 +212,7 @@ function updateTasks(updatedTask) {
|
|||
}
|
||||
konrad marked this conversation as resolved
Outdated
|
||||
|
||||
watchEffect(() => loadPendingTasks(dateFrom.value as string, dateTo.value as string))
|
||||
// loadPendingTasks()
|
||||
watchEffect(() => setTitle(pageTitle))
|
||||
watchEffect(() => setTitle(pageTitle.value))
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
Reference in New Issue
Instead of creating the params already in snake_case:
Wait until the last moment (ideally abstracted away from a apiClient) until you convert params from camelCase to snake_case, needed by the api. This way we use consequently use camelCase in most areas of the frontend – which is what you usually do in JS.
I agree. However, this whole filter thing is a mess right now, not only here. I'd like to fix this everywhere at once at some point, simplifying the filter handling in the process as well.
That being said, I've changed there here for now.