Subscribe to blocks and mempool updates in the mining dashboard

fixes #1414
This commit is contained in:
softsimon
2022-03-19 23:32:01 +04:00
parent aadb8dbb66
commit 91fa459ccc
2 changed files with 14 additions and 9 deletions

View File

@@ -34,7 +34,9 @@ export class BlocksList implements OnInit {
}
ngOnInit(): void {
this.websocketService.want(['blocks']);
if (!this.widget) {
this.websocketService.want(['blocks']);
}
this.skeletonLines = this.widget === true ? [...Array(5).keys()] : [...Array(15).keys()];
this.paginationMaxSize = window.matchMedia('(max-width: 670px)').matches ? 3 : 5;