Node stats updates

This commit is contained in:
softsimon
2022-05-05 23:19:24 +04:00
parent 7d6f0b5ebe
commit d9d7f8cc66
11 changed files with 127 additions and 20 deletions

View File

@@ -12,6 +12,7 @@ import { LightningApiService } from '../lightning-api.service';
})
export class NodeComponent implements OnInit {
node$: Observable<any>;
statistics$: Observable<any>;
publicKey$: Observable<string>;
constructor(
@@ -26,6 +27,13 @@ export class NodeComponent implements OnInit {
return this.lightningApiService.getNode$(params.get('public_key'));
})
);
this.statistics$ = this.activatedRoute.paramMap
.pipe(
switchMap((params: ParamMap) => {
return this.lightningApiService.listNodeStats$(params.get('public_key'));
})
);
}
}