|
|
@ -20,7 +20,9 @@ import { GfActivitiesTableComponent } from '@ghostfolio/ui/activities-table'; |
|
|
import { GfDialogFooterComponent } from '@ghostfolio/ui/dialog-footer'; |
|
|
import { GfDialogFooterComponent } from '@ghostfolio/ui/dialog-footer'; |
|
|
import { GfDialogHeaderComponent } from '@ghostfolio/ui/dialog-header'; |
|
|
import { GfDialogHeaderComponent } from '@ghostfolio/ui/dialog-header'; |
|
|
import { GfHoldingsTableComponent } from '@ghostfolio/ui/holdings-table'; |
|
|
import { GfHoldingsTableComponent } from '@ghostfolio/ui/holdings-table'; |
|
|
|
|
|
import { translate } from '@ghostfolio/ui/i18n'; |
|
|
import { DataService } from '@ghostfolio/ui/services'; |
|
|
import { DataService } from '@ghostfolio/ui/services'; |
|
|
|
|
|
import { GfTagsSelectorComponent } from '@ghostfolio/ui/tags-selector'; |
|
|
import { GfValueComponent } from '@ghostfolio/ui/value'; |
|
|
import { GfValueComponent } from '@ghostfolio/ui/value'; |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
@ -42,6 +44,7 @@ import { MatTableDataSource } from '@angular/material/table'; |
|
|
import { MatTabsModule } from '@angular/material/tabs'; |
|
|
import { MatTabsModule } from '@angular/material/tabs'; |
|
|
import { NavigationStart, Router } from '@angular/router'; |
|
|
import { NavigationStart, Router } from '@angular/router'; |
|
|
import { IonIcon } from '@ionic/angular/standalone'; |
|
|
import { IonIcon } from '@ionic/angular/standalone'; |
|
|
|
|
|
import { Tag } from '@prisma/client'; |
|
|
import { Big } from 'big.js'; |
|
|
import { Big } from 'big.js'; |
|
|
import { format, parseISO } from 'date-fns'; |
|
|
import { format, parseISO } from 'date-fns'; |
|
|
import { addIcons } from 'ionicons'; |
|
|
import { addIcons } from 'ionicons'; |
|
|
@ -70,6 +73,7 @@ import { |
|
|
GfDialogHeaderComponent, |
|
|
GfDialogHeaderComponent, |
|
|
GfHoldingsTableComponent, |
|
|
GfHoldingsTableComponent, |
|
|
GfInvestmentChartComponent, |
|
|
GfInvestmentChartComponent, |
|
|
|
|
|
GfTagsSelectorComponent, |
|
|
GfValueComponent, |
|
|
GfValueComponent, |
|
|
IonIcon, |
|
|
IonIcon, |
|
|
MatButtonModule, |
|
|
MatButtonModule, |
|
|
@ -105,6 +109,7 @@ export class GfAccountDetailDialogComponent implements OnInit { |
|
|
protected platformName: string; |
|
|
protected platformName: string; |
|
|
protected sortColumn = 'date'; |
|
|
protected sortColumn = 'date'; |
|
|
protected sortDirection: SortDirection = 'desc'; |
|
|
protected sortDirection: SortDirection = 'desc'; |
|
|
|
|
|
protected tags: Tag[]; |
|
|
protected totalItems: number; |
|
|
protected totalItems: number; |
|
|
protected user: User; |
|
|
protected user: User; |
|
|
protected valueInBaseCurrency: number; |
|
|
protected valueInBaseCurrency: number; |
|
|
@ -236,6 +241,7 @@ export class GfAccountDetailDialogComponent implements OnInit { |
|
|
interestInBaseCurrency, |
|
|
interestInBaseCurrency, |
|
|
name, |
|
|
name, |
|
|
platform, |
|
|
platform, |
|
|
|
|
|
tags, |
|
|
value, |
|
|
value, |
|
|
valueInBaseCurrency |
|
|
valueInBaseCurrency |
|
|
}) => { |
|
|
}) => { |
|
|
@ -285,6 +291,15 @@ export class GfAccountDetailDialogComponent implements OnInit { |
|
|
|
|
|
|
|
|
this.name = name; |
|
|
this.name = name; |
|
|
this.platformName = platform?.name ?? '-'; |
|
|
this.platformName = platform?.name ?? '-'; |
|
|
|
|
|
|
|
|
|
|
|
this.tags = |
|
|
|
|
|
tags?.map((tag) => { |
|
|
|
|
|
return { |
|
|
|
|
|
...tag, |
|
|
|
|
|
name: translate(tag.name) |
|
|
|
|
|
}; |
|
|
|
|
|
}) ?? []; |
|
|
|
|
|
|
|
|
this.valueInBaseCurrency = valueInBaseCurrency; |
|
|
this.valueInBaseCurrency = valueInBaseCurrency; |
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
this.changeDetectorRef.markForCheck(); |
|
|
|