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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user