apply icons and labels for each action

This commit is contained in:
JDonadio 2017-11-08 16:50:19 -03:00
parent 81c1175cc1
commit 6430f12cae
No known key found for this signature in database
GPG Key ID: EC1F4E04B2BFA730
2 changed files with 20 additions and 1 deletions

View File

@ -29,7 +29,15 @@
<img src="assets/img/icon-wallet.svg" class="icon-wallet"> <img src="assets/img/icon-wallet.svg" class="icon-wallet">
</ion-avatar> </ion-avatar>
<h2 translate>To</h2> <h2 translate>To</h2>
<p>{{destinationAddress || '...'}}</p> <p>{{destinationAddress || '...address to send...'}}</p>
</ion-item>
<ion-item *ngIf="tx.action != 'received'">
<ion-avatar item-start>
<img src="assets/img/icon-wallet.svg" class="icon-wallet">
</ion-avatar>
<h2 translate>From</h2>
<p>{{destinationAddress || '...address from was sent...'}}</p>
</ion-item> </ion-item>
<ion-item> <ion-item>
@ -44,6 +52,11 @@
<span>{{tx.message}}</span> <span>{{tx.message}}</span>
</button> </button>
<button ion-item (click)="addMemo()" *ngIf="tx.action != 'received'">
<ion-label>{{'Fee' | translate}}</ion-label>
<span>{{tx.message}}</span>
</button>
<ion-item> <ion-item>
<ion-label>{{'Confirmations' | translate}}</ion-label> <ion-label>{{'Confirmations' | translate}}</ion-label>
<ion-note item-end> <ion-note item-end>

View File

@ -19,6 +19,12 @@ export class TxDetailsPage {
this.fiatAmountStr = this.txFormatProvider.formatAlternativeStr('btc', this.tx.amount); 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() { addMemo() {
return; return;
} }