Get the last two pages of events on page load

When the page loads, we want to retrieve and initially display enough
content for the scrollbar to show. If the very last page doesn't
have enough content for the scrollbar to show, the user won't be able
to scroll up to see more job history. To avoid this scenario, we always
fetch the last _two_ pages when loading the view.
This commit is contained in:
Jake McDermott 2019-10-17 15:52:13 -04:00
parent 8e296bbf8c
commit 1fae3534a1
No known key found for this signature in database
GPG Key ID: 0E56ED990CDFCB4F

View File

@ -392,7 +392,8 @@ function last () {
return lastPage();
}
return lastRange();
return lastRange()
.then(() => previousRange());
}
function next () {