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 2e2e6aa01f
commit 3ae3df6722
5 changed files with 15 additions and 25 deletions

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;