Refactor preview routes into separate module

This commit is contained in:
Mononaut
2022-09-10 01:00:45 +00:00
parent 9a87b357fc
commit 9a5844bbdc
5 changed files with 76 additions and 90 deletions

View File

@@ -42,7 +42,7 @@ export class NodePreviewComponent implements OnInit {
this.node$ = this.activatedRoute.paramMap
.pipe(
switchMap((params: ParamMap) => {
this.publicKey = params.get('public_key');
this.publicKey = params.get('public_key');
this.openGraphService.waitFor('node-map-' + this.publicKey);
this.openGraphService.waitFor('node-data-' + this.publicKey);
return this.lightningApiService.getNode$(params.get('public_key'));