fix: task sorting in table

Resolves vikunja/frontend#2118
This commit is contained in:
kolaente 2022-07-13 16:19:58 +02:00
parent 579cff647d
commit 4a8b7a726a
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 190 additions and 187 deletions

View File

@ -108,5 +108,6 @@ export function useTaskList(listId) {
loadTasks,
searchTerm: search,
params,
sortByParam: sortBy,
}
}

View File

@ -251,6 +251,7 @@ const {
params,
totalPages,
currentPage,
sortByParam,
} = taskList
const tasks: Ref<TaskModel[]> = taskList.tasks
@ -270,6 +271,7 @@ function sort(property : keyof SortBy) {
} else {
delete sortBy.value[property]
}
sortByParam.value = sortBy.value
}
// TODO: re-enable opening task detail in modal