Merge pull request #7863 from JDonadio/ref/history-amount-color

[V4] amount color
This commit is contained in:
Gustavo Maximiliano Cortez 2018-01-16 15:51:28 -03:00 committed by GitHub
commit 420bab4bdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -147,7 +147,7 @@
<div class="action" *ngIf="tx.confirmations == 0 && tx.action == 'received'">{{'Receiving' | translate}}</div>
<div class="action" *ngIf="tx.confirmations > 0">{{tx.action}}</div>
<ion-note item-end>
<div class="amount">{{tx.amount | satToUnit: wallet.coin}}</div>
<div class="amount" [ngClass]="{'received': tx.action == 'received'}">{{tx.amount | satToUnit: wallet.coin}}</div>
<div class="date">
<span *ngIf="tx.time && createdWithinPastDay(tx.time * 1000)">{{tx.time * 1000 | amTimeAgo}}</span>
<span *ngIf="tx.time && !createdWithinPastDay(tx.time * 1000)">{{tx.time * 1000 | amDateFormat:'MMM D, YYYY'}}</span>

View File

@ -1,4 +1,7 @@
page-wallet-details {
.received {
color: color($colors, primary) !important;
}
.balance-card {
background: color($colors, primary);
}