diff --git a/apps/block_scout_web/assets/js/lib/async_listing_load.js b/apps/block_scout_web/assets/js/lib/async_listing_load.js index e58be3e475..bd02b9cf8d 100644 --- a/apps/block_scout_web/assets/js/lib/async_listing_load.js +++ b/apps/block_scout_web/assets/js/lib/async_listing_load.js @@ -192,6 +192,16 @@ export const elements = { $el.attr('href', state.prevPagePath) } }, + '[data-async-listing] [data-page-number]': { + render ($el, state) { + + if (state.pagesStack.length == 0) { + return $el.text('Page 1') + } + + $el.text('Page ' + state.pagesStack.length) + } + }, '[data-async-listing] [data-loading-button]': { render ($el, state) { if (!state.loadingFirstPage && state.loading) return $el.show() diff --git a/apps/block_scout_web/lib/block_scout_web/templates/common_components/_pagination_container.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/common_components/_pagination_container.html.eex index bd1dfc361d..3495b3a3b1 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/common_components/_pagination_container.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/common_components/_pagination_container.html.eex @@ -35,7 +35,7 @@ -