Enable sorting of account list by column

This commit is contained in:
Chord 2019-12-31 15:25:35 -05:00
parent 5c11393dae
commit c54b163be2
7 changed files with 333 additions and 33 deletions

View file

@ -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 () => {