Browse Source

chore: add "DRIP" selection to activities page + table

pull/1963/head
raskanskyz 2 years ago
parent
commit
0dcae23624
  1. 1
      apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html
  2. 9
      libs/ui/src/lib/activities-table/activities-table.component.html
  3. 4
      libs/ui/src/lib/activities-table/activities-table.component.scss

1
apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.html

@ -15,6 +15,7 @@
<mat-option i18n value="DIVIDEND">Dividend</mat-option> <mat-option i18n value="DIVIDEND">Dividend</mat-option>
<mat-option i18n value="ITEM">Item</mat-option> <mat-option i18n value="ITEM">Item</mat-option>
<mat-option i18n value="SELL">Sell</mat-option> <mat-option i18n value="SELL">Sell</mat-option>
<mat-option i18n value="DRIP">DRIP</mat-option>
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
</div> </div>

9
libs/ui/src/lib/activities-table/activities-table.component.html

@ -143,11 +143,16 @@
buy: element.type === 'BUY', buy: element.type === 'BUY',
dividend: element.type === 'DIVIDEND', dividend: element.type === 'DIVIDEND',
item: element.type === 'ITEM', item: element.type === 'ITEM',
sell: element.type === 'SELL' sell: element.type === 'SELL',
drip: element.type === 'DRIP'
}" }"
> >
<ion-icon <ion-icon
*ngIf="element.type === 'BUY' || element.type === 'DIVIDEND'" *ngIf="
element.type === 'BUY' ||
element.type === 'DIVIDEND' ||
element.type === 'DRIP'
"
name="arrow-up-circle-outline" name="arrow-up-circle-outline"
></ion-icon> ></ion-icon>
<ion-icon <ion-icon

4
libs/ui/src/lib/activities-table/activities-table.component.scss

@ -40,6 +40,10 @@
&.sell { &.sell {
color: var(--orange); color: var(--orange);
} }
&.drip {
color: var(--cyan);
}
} }
} }
} }

Loading…
Cancel
Save