Merge branch 'master' into ab-fetch-last-coin-balance-records

pull/2538/head
Ayrat Badykov 5 years ago committed by GitHub
commit 6e4d2c5866
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
- [#2538](https://github.com/poanetwork/blockscout/pull/2538) - fetch the last not empty coin balance records

@ -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