Browse Source

Support dividend in transactions table

pull/547/head
Thomas 4 years ago
parent
commit
497e788b9a
  1. 8
      apps/client/src/app/components/transactions-table/transactions-table.component.html
  2. 4
      apps/client/src/app/components/transactions-table/transactions-table.component.scss

8
apps/client/src/app/components/transactions-table/transactions-table.component.html

@ -77,11 +77,15 @@
<td mat-cell *matCellDef="let element" class="px-1"> <td mat-cell *matCellDef="let element" class="px-1">
<div <div
class="d-inline-flex p-1 type-badge" class="d-inline-flex p-1 type-badge"
[ngClass]="element.type == 'BUY' ? 'buy' : 'sell'" [ngClass]="{
buy: element.type === 'BUY',
dividend: element.type === 'DIVIDEND',
sell: element.type === 'SELL'
}"
> >
<ion-icon <ion-icon
[name]=" [name]="
element.type === 'BUY' element.type === 'BUY' || element.type === 'DIVIDEND'
? 'arrow-forward-circle-outline' ? 'arrow-forward-circle-outline'
: 'arrow-back-circle-outline' : 'arrow-back-circle-outline'
" "

4
apps/client/src/app/components/transactions-table/transactions-table.component.scss

@ -37,6 +37,10 @@
color: var(--green); color: var(--green);
} }
&.dividend {
color: var(--blue);
}
&.sell { &.sell {
color: var(--orange); color: var(--orange);
} }

Loading…
Cancel
Save