Merge pull request #2564 from poanetwork/ab-fix-first-page-for-uncles-and-reorgs

fix first page button for uncles and reorgs
pull/2497/head
Victor Baranov 5 years ago committed by GitHub
commit 3328543085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 11
      apps/block_scout_web/assets/js/lib/async_listing_load.js

@ -3,6 +3,7 @@
### Features
### Fixes
- [#2564](https://github.com/poanetwork/blockscout/pull/2564) - fix first page button for uncles and reorgs
- [#2563](https://github.com/poanetwork/blockscout/pull/2563) - Fix view less transfers button
### Chore

@ -205,7 +205,16 @@ export const elements = {
}
$el.show()
$el.attr('disabled', false)
$el.attr('href', window.location.href.split('?')[0])
const urlParams = new URLSearchParams(window.location.search)
const blockParam = urlParams.get('block_type')
const firstPageHref = window.location.href.split('?')[0]
if (blockParam !== null) {
$el.attr('href', firstPageHref + '?block_type=' + blockParam)
} else {
$el.attr('href', firstPageHref)
}
}
},
'[data-async-listing] [data-page-number]': {

Loading…
Cancel
Save