feature/175-request_pagination #176

Merged
niggl merged 5 commits from feature/175-request_pagination into dev 2023-04-19 13:37:17 +00:00
4 changed files with 4 additions and 13 deletions
Showing only changes of commit 52439aa5bc - Show all commits

View File

@ -172,9 +172,7 @@
data: current_cards,
}));
if (page == 0) {
dataLoaded = true;
}
dataLoaded = true;
page++;
}
console.log("All cards loaded");

View File

@ -41,9 +41,7 @@
current_donations = current_donations.concat(...donations);
if (page == 0) {
dataLoaded = true;
}
dataLoaded = true;
page++;
}
console.log("All donations loaded");

View File

@ -179,9 +179,7 @@
data: current_runners,
}));
if (page == 0) {
dataLoaded = true;
}
dataLoaded = true;
page++;
}
console.log("All runners loaded");

View File

@ -182,7 +182,6 @@
const scans = await ScanService.scanControllerGetAll(page, 500);
if (scans.length == 0) {
page = -2;
dataLoaded = true;
}
current_scans = current_scans.concat(...scans);
@ -191,9 +190,7 @@
data: current_scans,
}));
if (page == 0) {
dataLoaded = true;
}
dataLoaded = true;
page++;
}
console.log("All scans loaded");