feat: implement share account actions, view components, and pending checker tasks
This commit is contained in:
@@ -24,6 +24,7 @@ import {
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { DateFormatPipe } from '../../../pipes/date-format.pipe';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
import { isSettledShareTransaction } from 'app/shares/share-transactions.util';
|
||||
|
||||
/**
|
||||
* Transactions Tab Component.
|
||||
@@ -78,7 +79,7 @@ export class TransactionsTabComponent implements OnInit {
|
||||
this.route.parent.data.subscribe((data: { sharesAccountData: any }) => {
|
||||
this.shareAccountData = data.sharesAccountData;
|
||||
this.transactionsData = this.shareAccountData.purchasedShares
|
||||
.filter((transaction: any) => transaction.type.value !== 'Charge Payment')
|
||||
.filter(isSettledShareTransaction)
|
||||
.slice()
|
||||
.sort((a: any, b: any) => new Date(a.purchasedDate).getTime() - new Date(b.purchasedDate).getTime());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user