Address index and api.

Address view.
This commit is contained in:
softsimon
2020-07-13 21:46:25 +07:00
parent 38afcc6822
commit 3bb2ce7d40
22 changed files with 295 additions and 54 deletions

View File

@@ -1,6 +1,6 @@
<div class="container-xl">
<h1 class="float-left mr-3 mb-md-3">Transaction</h1>
<h1 class="float-left mr-3 mb-md-3">Bisq Transaction</h1>
<ng-template [ngIf]="!isLoading" [ngIfElse]="isLoadingTmpl">

View File

@@ -6,6 +6,7 @@ import { of, Observable, Subscription } from 'rxjs';
import { StateService } from 'src/app/services/state.service';
import { Block } from 'src/app/interfaces/electrs.interface';
import { BisqApiService } from '../bisq-api.service';
import { SeoService } from 'src/app/services/seo.service';
@Component({
selector: 'app-bisq-transaction',
@@ -23,13 +24,16 @@ export class BisqTransactionComponent implements OnInit, OnDestroy {
private route: ActivatedRoute,
private bisqApiService: BisqApiService,
private stateService: StateService,
private seoService: SeoService,
) { }
ngOnInit(): void {
this.subscription = this.route.paramMap.pipe(
switchMap((params: ParamMap) => {
this.isLoading = true;
document.body.scrollTo(0, 0);
this.txId = params.get('id') || '';
this.seoService.setTitle('Transaction: ' + this.txId, true);
if (history.state.data) {
return of(history.state.data);
}