Stop trimming bottom on transactions live reload

Co-authored-by: Stamates <stamates@hotmail.com>
pull/949/head
jimmay5469 6 years ago committed by Stamates
parent 215209a256
commit 531a16d761
  1. 10
      apps/block_scout_web/assets/js/pages/transaction.js

@ -189,12 +189,6 @@ if ($transactionPendingListPage.length) {
} }
if (oldState.newPendingTransactions !== state.newPendingTransactions) { if (oldState.newPendingTransactions !== state.newPendingTransactions) {
const newTransactionsToInsert = state.newPendingTransactions.slice(oldState.newPendingTransactions.length) const newTransactionsToInsert = state.newPendingTransactions.slice(oldState.newPendingTransactions.length)
$pendingTransactionsList
.children()
.slice($pendingTransactionsList.children().length - newTransactionsToInsert.length,
$pendingTransactionsList.children().length
)
.remove()
prependWithClingBottom($pendingTransactionsList, newTransactionsToInsert.reverse().join('')) prependWithClingBottom($pendingTransactionsList, newTransactionsToInsert.reverse().join(''))
updateAllAges() updateAllAges()
@ -236,10 +230,6 @@ if ($transactionListPage.length) {
} }
if (oldState.newTransactions !== state.newTransactions) { if (oldState.newTransactions !== state.newTransactions) {
const newTransactionsToInsert = state.newTransactions.slice(oldState.newTransactions.length) const newTransactionsToInsert = state.newTransactions.slice(oldState.newTransactions.length)
$transactionsList
.children()
.slice($transactionsList.children().length - newTransactionsToInsert.length, $transactionsList.children().length)
.remove()
prependWithClingBottom($transactionsList, newTransactionsToInsert.reverse().join('')) prependWithClingBottom($transactionsList, newTransactionsToInsert.reverse().join(''))
updateAllAges() updateAllAges()

Loading…
Cancel
Save