add blockchain bar to stratum page

This commit is contained in:
Mononaut 2024-09-09 23:27:29 +00:00
parent 3ea491ad13
commit cb4bf0611e
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E
2 changed files with 10 additions and 3 deletions

View File

@ -45,6 +45,7 @@ export class StratumList implements OnInit, OnDestroy {
) {} ) {}
ngOnInit(): void { ngOnInit(): void {
this.websocketService.want(['stats', 'blocks', 'mempool-blocks']);
this.miningService.getPools().subscribe(pools => { this.miningService.getPools().subscribe(pools => {
this.pools = {}; this.pools = {};
for (const pool of pools) { for (const pool of pools) {

View File

@ -57,10 +57,16 @@ const routes: Routes = [
path: 'rbf', path: 'rbf',
component: RbfList, component: RbfList,
}, },
{ ...(browserWindowEnv.STRATUM_ENABLED ? [{
path: 'stratum', path: 'stratum',
component: StartComponent,
children: [
{
path: '',
component: StratumList, component: StratumList,
}, }
]
}] : []),
{ {
path: 'terms-of-service', path: 'terms-of-service',
loadChildren: () => import('@components/terms-of-service/terms-of-service.module').then(m => m.TermsOfServiceModule), loadChildren: () => import('@components/terms-of-service/terms-of-service.module').then(m => m.TermsOfServiceModule),