From 6430f12cae46e9df1c653dced55963ede0190ea9 Mon Sep 17 00:00:00 2001 From: JDonadio Date: Wed, 8 Nov 2017 16:50:19 -0300 Subject: [PATCH] apply icons and labels for each action --- src/pages/tx-details/tx-details.html | 15 ++++++++++++++- src/pages/tx-details/tx-details.ts | 6 ++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/pages/tx-details/tx-details.html b/src/pages/tx-details/tx-details.html index d2b38edeb..f4c6d04b1 100644 --- a/src/pages/tx-details/tx-details.html +++ b/src/pages/tx-details/tx-details.html @@ -29,7 +29,15 @@

To

-

{{destinationAddress || '...'}}

+

{{destinationAddress || '...address to send...'}}

+ + + + + + +

From

+

{{destinationAddress || '...address from was sent...'}}

@@ -44,6 +52,11 @@ {{tx.message}} + + {{'Confirmations' | translate}} diff --git a/src/pages/tx-details/tx-details.ts b/src/pages/tx-details/tx-details.ts index e1b8ea2b4..4fe1f46cd 100644 --- a/src/pages/tx-details/tx-details.ts +++ b/src/pages/tx-details/tx-details.ts @@ -19,6 +19,12 @@ export class TxDetailsPage { this.fiatAmountStr = this.txFormatProvider.formatAlternativeStr('btc', this.tx.amount); } + ionViewDidEnter() { + if (this.tx.action == 'sent') this.title = 'Sent Funds'; + if (this.tx.action == 'received') this.title = 'Received Funds'; + if (this.tx.action == 'moved') this.title = 'Moved Funds'; + } + addMemo() { return; }