Revert "Parse TXID, hash or address strings from search bar and allow searching for TXID:OUTPUT. (#578)" (#610)

This reverts commit 2e2e6aa01f.
This commit is contained in:
softsimon
2021-07-06 19:55:01 +03:00
committed by GitHub
parent 61975c3f63
commit 9be82737df
5 changed files with 15 additions and 25 deletions

View File

@@ -198,7 +198,7 @@
<div class="clearfix"></div>
<app-transactions-list #txList [transactions]="[tx]" [outputIndex]="outputIndex" [transactionPage]="true"></app-transactions-list>
<app-transactions-list #txList [transactions]="[tx]" [transactionPage]="true"></app-transactions-list>
<h2 class="text-left" i18n="transaction.details">Details</h2>
<div class="box">

View File

@@ -20,7 +20,6 @@ export class TransactionComponent implements OnInit, OnDestroy {
network = '';
tx: Transaction;
txId: string;
outputIndex: number;
txInBlockIndex: number;
isLoadingTx = true;
error: any = undefined;
@@ -76,11 +75,9 @@ export class TransactionComponent implements OnInit, OnDestroy {
this.subscription = this.route.paramMap.pipe(
switchMap((params: ParamMap) => {
this.resetTransaction();
const urlMatch = (params.get('id') || '').split(':');
this.txId = urlMatch[0];
this.outputIndex = urlMatch[1] === undefined ? null : parseInt(urlMatch[1], 10);
this.txId = params.get('id') || '';
this.seoService.setTitle($localize`:@@bisq.transaction.browser-title:Transaction: ${this.txId}:INTERPOLATION:`);
this.resetTransaction();
return merge(
of(true),
this.stateService.connectionState$.pipe(
@@ -205,7 +202,6 @@ export class TransactionComponent implements OnInit, OnDestroy {
resetTransaction() {
this.error = undefined;
this.tx = null;
this.outputIndex = null;
this.waitingForTransaction = false;
this.isLoadingTx = true;
this.rbfTransaction = undefined;