mirror of
https://github.com/psforever/PSFPortal.git
synced 2026-07-16 00:44:40 +00:00
Enable sorting of account list by column
This commit is contained in:
parent
5c11393dae
commit
c54b163be2
7 changed files with 333 additions and 33 deletions
|
|
@ -11,8 +11,11 @@
|
|||
let fetching = false;
|
||||
let pagination = { page: 1 };
|
||||
|
||||
export async function refresh() {
|
||||
await list_fetch(pagination.page)
|
||||
export async function refresh(newpage) {
|
||||
if (newpage !== undefined && typeof newpage == "number")
|
||||
await list_fetch(newpage)
|
||||
else
|
||||
await list_fetch(pagination.page)
|
||||
}
|
||||
|
||||
onMount(async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue