mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
Just use num_pages when we're at the end of a nav list
This commit is contained in:
parent
e28eec4a56
commit
5a31804330
@ -32,7 +32,7 @@ export default
|
||||
// Which page are we on?
|
||||
if (Empty(next) && previous) {
|
||||
// no next page, but there is a previous page
|
||||
scope[iterator + '_page'] = /page=\d+/.test(previous) ? parseInt(previous.match(/page=(\d+)/)[1]) + 1 : 2;
|
||||
scope[iterator + '_page'] = scope[iterator + '_num_pages'];
|
||||
} else if (next && Empty(previous)) {
|
||||
// next page available, but no previous page
|
||||
scope[iterator + '_page'] = 1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user