1
0

fix(filters): reload tasks silently when marking one done in the list

This fixes a UI issue where if a user had a filter set and marked the task done, it would not disappear, even though the filter does not match the done task anymore.
This commit is contained in:
kolaente
2024-07-18 15:51:03 +02:00
parent bea81f83f7
commit 526bd1f170
2 changed files with 13 additions and 4 deletions

View File

@ -105,8 +105,10 @@ export function useTaskList(
const totalPages = computed(() => taskCollectionService.totalPages)
const tasks = ref<ITask[]>([])
async function loadTasks() {
tasks.value = []
async function loadTasks(resetBeforeLoad: boolean = true) {
if(resetBeforeLoad) {
tasks.value = []
}
try {
tasks.value = await taskCollectionService.getAll(...getAllTasksParams.value)
} catch (e) {