add blockchain bar to stratum page

This commit is contained in:
Mononaut 2024-09-09 23:27:29 +00:00
parent 03842a45cb
commit 55f428ce9f
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 {
this.websocketService.want(['stats', 'blocks', 'mempool-blocks']);
this.miningService.getPools().subscribe(pools => {
this.pools = {};
for (const pool of pools) {

View File

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