fix: task sorting in table
Resolves https://kolaente.dev/vikunja/frontend/issues/2118
This commit is contained in:
parent
579cff647d
commit
4a8b7a726a
2 changed files with 190 additions and 187 deletions
|
@ -108,5 +108,6 @@ export function useTaskList(listId) {
|
||||||
loadTasks,
|
loadTasks,
|
||||||
searchTerm: search,
|
searchTerm: search,
|
||||||
params,
|
params,
|
||||||
|
sortByParam: sortBy,
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -251,6 +251,7 @@ const {
|
||||||
params,
|
params,
|
||||||
totalPages,
|
totalPages,
|
||||||
currentPage,
|
currentPage,
|
||||||
|
sortByParam,
|
||||||
} = taskList
|
} = taskList
|
||||||
const tasks: Ref<TaskModel[]> = taskList.tasks
|
const tasks: Ref<TaskModel[]> = taskList.tasks
|
||||||
|
|
||||||
|
@ -270,6 +271,7 @@ function sort(property : keyof SortBy) {
|
||||||
} else {
|
} else {
|
||||||
delete sortBy.value[property]
|
delete sortBy.value[property]
|
||||||
}
|
}
|
||||||
|
sortByParam.value = sortBy.value
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: re-enable opening task detail in modal
|
// TODO: re-enable opening task detail in modal
|
||||||
|
|
Loading…
Add table
Reference in a new issue