mirror of
https://github.com/crater-invoice/crater.git
synced 2025-12-14 17:32:56 -05:00
fix table pagination filter issue
This commit is contained in:
@@ -309,6 +309,8 @@ function changeSorting(column) {
|
||||
}
|
||||
|
||||
if (!usesLocalData.value) {
|
||||
if (pagination.value)
|
||||
pagination.value.currentPage = 1
|
||||
mapDataToRows()
|
||||
}
|
||||
}
|
||||
@@ -326,7 +328,10 @@ async function pageChange(page) {
|
||||
await mapDataToRows()
|
||||
}
|
||||
|
||||
async function refresh() {
|
||||
async function refresh(isPreservePage = false) {
|
||||
if (pagination.value && !isPreservePage)
|
||||
pagination.value.currentPage = 1
|
||||
|
||||
await mapDataToRows()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user