diff --git a/src/app/pages/accounts/account-details/account-details.component.html b/src/app/pages/accounts/account-details/account-details.component.html index 6f646d2..8d9b7b6 100644 --- a/src/app/pages/accounts/account-details/account-details.component.html +++ b/src/app/pages/accounts/account-details/account-details.component.html @@ -228,7 +228,7 @@ - +
@@ -257,12 +257,12 @@ Sender - {{transaction?.sender?.vcard.fn[0].value}} + {{transaction?.sender?.vcard.fn[0].value || transaction.from}} Recipient - {{transaction?.recipient?.vcard.fn[0].value}} + {{transaction?.recipient?.vcard.fn[0].value || transaction.to}} diff --git a/src/app/pages/transactions/transaction-details/transaction-details.component.html b/src/app/pages/transactions/transaction-details/transaction-details.component.html index 39f90e1..fb1c6b0 100644 --- a/src/app/pages/transactions/transaction-details/transaction-details.component.html +++ b/src/app/pages/transactions/transaction-details/transaction-details.component.html @@ -3,7 +3,7 @@
TRANSACTION DETAILS - +
diff --git a/src/app/pages/transactions/transaction-details/transaction-details.component.ts b/src/app/pages/transactions/transaction-details/transaction-details.component.ts index fded333..e6efb47 100644 --- a/src/app/pages/transactions/transaction-details/transaction-details.component.ts +++ b/src/app/pages/transactions/transaction-details/transaction-details.component.ts @@ -1,4 +1,11 @@ -import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core'; +import { + ChangeDetectionStrategy, + Component, + EventEmitter, + Input, + OnInit, + Output, +} from '@angular/core'; import { Router } from '@angular/router'; import { TransactionService } from '@app/_services'; import { copyToClipboard } from '@app/_helpers'; @@ -13,6 +20,9 @@ import { strip0x } from '@src/assets/js/ethtx/dist/hex'; }) export class TransactionDetailsComponent implements OnInit { @Input() transaction; + + @Output() closeWindow: EventEmitter = new EventEmitter(); + senderBloxbergLink: string; recipientBloxbergLink: string; traderBloxbergLink: string; @@ -62,4 +72,9 @@ export class TransactionDetailsComponent implements OnInit { this.snackBar.open(address + ' copied successfully!', 'Close', { duration: 3000 }); } } + + close(): void { + this.transaction = null; + this.closeWindow.emit(this.transaction); + } } diff --git a/src/app/pages/transactions/transactions.component.html b/src/app/pages/transactions/transactions.component.html index 1d4adc8..2099255 100644 --- a/src/app/pages/transactions/transactions.component.html +++ b/src/app/pages/transactions/transactions.component.html @@ -22,7 +22,7 @@
- +
@@ -53,7 +53,7 @@ Recipient - {{transaction?.recipient?.vcard.fn[0].value || transaction.to }} + {{transaction?.recipient?.vcard.fn[0].value || transaction.to}}