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">
<div
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
[name]="
element.type === 'BUY'
element.type === 'BUY' || element.type === 'DIVIDEND'
? 'arrow-forward-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);
}
&.dividend {
color: var(--blue);
}
&.sell {
color: var(--orange);
}

Loading…
Cancel
Save