Allow smooth key navigation in block table and pegs table

This commit is contained in:
natsoni
2024-03-20 18:32:39 +09:00
parent 524619f48e
commit 5deb8c3149
3 changed files with 97 additions and 29 deletions

View File

@@ -594,19 +594,6 @@ export class BlockComponent implements OnInit, OnDestroy {
this.transactionsError = null;
target.scrollIntoView(); // works for chrome
this.router.navigate([], { queryParams: { page: page }, queryParamsHandling: 'merge' });
this.electrsApiService.getBlockTransactions$(this.block.id, start)
.pipe(
catchError((err) => {
this.transactionsError = err;
return of([]);
})
)
.subscribe((transactions) => {
this.transactions = transactions;
this.isLoadingTransactions = false;
target.scrollIntoView(); // works for firefox
});
}
toggleShowDetails() {