handle credit types

This commit is contained in:
Kyle Spearrin 2019-02-23 20:34:21 -05:00
parent 0c63f65aa7
commit af2b422730
1 changed files with 4 additions and 3 deletions

View File

@ -96,12 +96,13 @@
<tr *ngFor="let t of transactions"> <tr *ngFor="let t of transactions">
<td>{{t.createdDate | date:'mediumDate'}}</td> <td>{{t.createdDate | date:'mediumDate'}}</td>
<td> <td>
<span *ngIf="t.type === transactionType.Charge">{{'chargeNoun' | i18n}}</span> <span *ngIf="t.type === transactionType.Charge || t.type === transactionType.Credit">
{{'chargeNoun' | i18n}}
</span>
<span *ngIf="t.type === transactionType.Refund">{{'refundNoun' | i18n}}</span> <span *ngIf="t.type === transactionType.Refund">{{'refundNoun' | i18n}}</span>
</td> </td>
<td> <td>
<i class="fa fa-fw" *ngIf="t.type === transactionType.Charge || t.type === transactionType.Refund" <i class="fa fa-fw" *ngIf="t.paymentMethodType" [ngClass]="{
[ngClass]="{
'fa-credit-card': t.paymentMethodType === paymentMethodType.Card, 'fa-credit-card': t.paymentMethodType === paymentMethodType.Card,
'fa-university': t.paymentMethodType === paymentMethodType.BankAccount, 'fa-university': t.paymentMethodType === paymentMethodType.BankAccount,
'fa-bitcoin text-warning': t.paymentMethodType === paymentMethodType.BitPay, 'fa-bitcoin text-warning': t.paymentMethodType === paymentMethodType.BitPay,