From 011479a341cd1132b3696374ebbd9e65b715dde7 Mon Sep 17 00:00:00 2001 From: Alexis Hernandez Date: Sat, 17 Mar 2018 20:11:37 -0600 Subject: [PATCH] web-ui: Update TransactionDetails to link addresses and blocks --- .../transaction-details.component.html | 11 ++++++++--- .../transaction-details.component.ts | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/web-ui/src/app/components/transaction-details/transaction-details.component.html b/web-ui/src/app/components/transaction-details/transaction-details.component.html index 1699c7d..07f9bff 100644 --- a/web-ui/src/app/components/transaction-details/transaction-details.component.html +++ b/web-ui/src/app/components/transaction-details/transaction-details.component.html @@ -14,7 +14,8 @@
- +
@@ -36,7 +37,9 @@
- +
@@ -53,7 +56,9 @@
- +
diff --git a/web-ui/src/app/components/transaction-details/transaction-details.component.ts b/web-ui/src/app/components/transaction-details/transaction-details.component.ts index 24939b7..259b725 100644 --- a/web-ui/src/app/components/transaction-details/transaction-details.component.ts +++ b/web-ui/src/app/components/transaction-details/transaction-details.component.ts @@ -42,7 +42,7 @@ export class TransactionDetailsComponent implements OnInit { } getFee(tx: Transaction): number { - const vout = tx.output.map(t => t.value).reduce((a, b) => a + b); + const vout = tx.output.map(t => t.value).reduce((a, b) => a + b, 0); return Math.max(0, this.getVIN(tx) - vout); }