mirror of https://github.com/BTCPrivate/copay.git
apply icons and labels for each action
This commit is contained in:
parent
81c1175cc1
commit
6430f12cae
|
@ -29,7 +29,15 @@
|
|||
<img src="assets/img/icon-wallet.svg" class="icon-wallet">
|
||||
</ion-avatar>
|
||||
<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>
|
||||
|
@ -44,6 +52,11 @@
|
|||
<span>{{tx.message}}</span>
|
||||
</button>
|
||||
|
||||
<button ion-item (click)="addMemo()" *ngIf="tx.action != 'received'">
|
||||
<ion-label>{{'Fee' | translate}}</ion-label>
|
||||
<span>{{tx.message}}</span>
|
||||
</button>
|
||||
|
||||
<ion-item>
|
||||
<ion-label>{{'Confirmations' | translate}}</ion-label>
|
||||
<ion-note item-end>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue