Fixed next page btn clickable w/ no uploads/users

This commit is contained in:
Bobby Wibowo 2020-05-02 22:47:04 +07:00
parent 41d52d947b
commit 0eb425e216
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF
4 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -2441,7 +2441,7 @@ page.paginate = (totalItems, itemsPerPage, currentPage) => {
return `
<nav class="pagination is-centered is-small">
<a class="button pagination-previous" data-action="page-prev"${currentPage === 1 ? ' disabled' : ''}>Previous</a>
<a class="button pagination-next" data-action="page-next"${currentPage === numPages ? ' disabled' : ''}>Next page</a>
<a class="button pagination-next" data-action="page-next"${currentPage >= numPages ? ' disabled' : ''}>Next page</a>
<ul class="pagination-list">${template}</ul>
</nav>
`

View File

@ -1,5 +1,5 @@
{
"1": "1588434130",
"1": "1588434390",
"2": "1581416390",
"3": "1581416390",
"4": "1581416390",