diff --git a/packages/insight-previous/src/components/transaction-list/transaction-list.html b/packages/insight-previous/src/components/transaction-list/transaction-list.html index e9e4170315f..faa0da526e0 100644 --- a/packages/insight-previous/src/components/transaction-list/transaction-list.html +++ b/packages/insight-previous/src/components/transaction-list/transaction-list.html @@ -5,10 +5,15 @@
- - + + + + + Load More + +
diff --git a/packages/insight-previous/src/components/transaction-list/transaction-list.ts b/packages/insight-previous/src/components/transaction-list/transaction-list.ts index 3206ca5d5e7..bf70703d46d 100644 --- a/packages/insight-previous/src/components/transaction-list/transaction-list.ts +++ b/packages/insight-previous/src/components/transaction-list/transaction-list.ts @@ -15,6 +15,9 @@ export class TransactionListComponent implements OnInit { @Input() public transactions?: any = []; + limit = 10; + chunkSize = 100; + constructor(private txProvider: TxsProvider) {} ngOnInit(): void { @@ -33,4 +36,9 @@ export class TransactionListComponent implements OnInit { this.loading = false; } } + + loadMore() { + this.limit += this.chunkSize; + this.chunkSize *= 2; + } }