mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 21:21:21 -03:30
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:
parent
8e296bbf8c
commit
1fae3534a1
@ -392,7 +392,8 @@ function last () {
|
||||
return lastPage();
|
||||
}
|
||||
|
||||
return lastRange();
|
||||
return lastRange()
|
||||
.then(() => previousRange());
|
||||
}
|
||||
|
||||
function next () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user