1
0

feat(projects): allow setting a saved filter for tasks shown on the overview page

Resolves https://kolaente.dev/vikunja/api/issues/1545
Resolves https://community.vikunja.io/t/customizable-overview-page/685
This commit is contained in:
kolaente
2023-06-28 15:20:43 +02:00
parent ac6c4cf2bc
commit 2a14325f62
7 changed files with 56 additions and 4 deletions

View File

@ -37,6 +37,10 @@ const props = defineProps({
type: Object as PropType<IProject>,
required: false,
},
savedFiltersOnly: {
type: Boolean,
default: false,
},
})
const emit = defineEmits(['update:modelValue'])
@ -57,6 +61,12 @@ function findProjects(query: string) {
if (query === '') {
select(null)
}
if (props.savedFiltersOnly) {
foundProjects.value = projectStore.searchSavedFilter(query)
return
}
foundProjects.value = projectStore.searchProject(query)
}