Show mining blockchain blocks on accelerator dashboard

This commit is contained in:
Mononaut 2023-07-26 15:22:24 +09:00
parent 7019e6ec03
commit b0e73466fa
No known key found for this signature in database
GPG key ID: A3F058E41374C04E
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ export class BlockchainBlocksComponent implements OnInit, OnChanges, OnDestroy {
}
enabledMiningInfoIfNeeded(url) {
this.showMiningInfo = url.indexOf('/mining') !== -1;
this.showMiningInfo = url.includes('/mining') || url.includes('/acceleration');
this.cd.markForCheck(); // Need to update the view asap
}

View file

@ -90,7 +90,7 @@ export class MempoolBlocksComponent implements OnInit, OnChanges, OnDestroy {
) { }
enabledMiningInfoIfNeeded(url) {
this.showMiningInfo = url.indexOf('/mining') !== -1;
this.showMiningInfo = url.includes('/mining') || url.includes('/acceleration');
this.cd.markForCheck(); // Need to update the view asap
}