feat: implement modals with vue router 4 #816

Merged
konrad merged 62 commits from dpschen/frontend:feature/vue3-modals-with-router-4 into main 2022-02-05 16:49:04 +00:00
1 changed files with 7 additions and 12 deletions
Showing only changes of commit e6e8a98514 - Show all commits

View File

@ -13,15 +13,6 @@ export const getDefaultParams = () => ({
filter_concat: 'and',
})
const filters = {
done: {
value: false,
comparator: 'equals',
concat: 'and',
},
}
const SORT_BY_DEFAULT = {
id: 'desc',
}
@ -88,9 +79,13 @@ export function useTaskList(listId) {
const route = useRoute()
watch(() => route.query, (query) => {
const { page: pageQuery, search: searchQuery } = query
search.value = searchQuery
page.value = pageQuery
const { page: pageQueryValue, search: searchQuery } = query
if (searchQuery !== undefined) {
search.value = searchQuery
}
if (pageQueryValue !== undefined) {
page.value = parseInt(pageQueryValue)
}
}, { immediate: true })