Infinite scroll replaces "load more" buttons.

This commit is contained in:
softsimon
2020-03-01 03:32:12 +07:00
parent c9b161423d
commit 90c05ccb51
11 changed files with 34 additions and 13 deletions

View File

@@ -153,6 +153,9 @@ export class AddressComponent implements OnInit, OnDestroy {
}
loadMore() {
if (this.isLoadingTransactions || !this.totalConfirmedTxCount || this.loadedConfirmedTxCount >= this.totalConfirmedTxCount) {
return;
}
this.isLoadingTransactions = true;
this.electrsApiService.getAddressTransactionsFromHash$(this.address.address, this.lastTransactionTxId)
.subscribe((transactions: Transaction[]) => {